Align client and solution with renamed projects
Update project references and solution entries to use `PipeClient` and `PipeServer`, and launch the renamed `PipeServer.exe` or `PipeServer.dll`.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using ClientServerShared;
|
||||
using PipeShared;
|
||||
using PipeMethodCalls;
|
||||
using System.Diagnostics;
|
||||
using System.Xml.Linq;
|
||||
@@ -163,7 +163,7 @@ async Task StartServerAndConnectAsync(string pipeName)
|
||||
static Process StartServer(string pipeName)
|
||||
{
|
||||
string baseDir = AppContext.BaseDirectory;
|
||||
string serverExe = Path.Combine(baseDir, OperatingSystem.IsWindows() ? "Server.exe" : "Server");
|
||||
string serverExe = Path.Combine(baseDir, OperatingSystem.IsWindows() ? "PipeServer.exe" : "PipeServer");
|
||||
ProcessStartInfo startInfo;
|
||||
if (File.Exists(serverExe))
|
||||
{
|
||||
@@ -172,7 +172,7 @@ static Process StartServer(string pipeName)
|
||||
else
|
||||
{
|
||||
startInfo = new ProcessStartInfo("dotnet");
|
||||
startInfo.ArgumentList.Add(Path.Combine(baseDir, "Server.dll"));
|
||||
startInfo.ArgumentList.Add(Path.Combine(baseDir, "PipeServer.dll"));
|
||||
}
|
||||
startInfo.ArgumentList.Add($"{PipeConstants.PipeNameArgPrefix}{pipeName}");
|
||||
startInfo.UseShellExecute = false;
|
||||
|
||||
Reference in New Issue
Block a user