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,8 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Shared\Shared.csproj" />
|
||||
<ProjectReference Include="..\Server\Server.csproj" />
|
||||
<ProjectReference Include="..\PipeShared\PipeShared.csproj" />
|
||||
<ProjectReference Include="..\PipeServer\PipeServer.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -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;
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
<Solution>
|
||||
<Project Path="Client/Client.csproj" />
|
||||
<Project Path="Server/Server.csproj" />
|
||||
<Project Path="Shared/Shared.csproj" />
|
||||
<Project Path="PipeClient/PipeClient.csproj" />
|
||||
<Project Path="PipeServer/PipeServer.csproj" />
|
||||
<Project Path="PipeShared/PipeShared.csproj" />
|
||||
</Solution>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Shared\Shared.csproj" />
|
||||
<ProjectReference Include="..\PipeShared\PipeShared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using ClientServerShared;
|
||||
using PipeShared;
|
||||
using PipeMethodCalls;
|
||||
using Server;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using ClientServerShared;
|
||||
using PipeShared;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Numerics;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Numerics;
|
||||
|
||||
namespace ClientServerShared;
|
||||
namespace PipeShared;
|
||||
|
||||
public interface IServerMethods
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using PipeMethodCalls;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace ClientServerShared;
|
||||
namespace PipeShared;
|
||||
|
||||
/// <summary>
|
||||
/// JSON serializer that also includes public fields (required for System.Numerics.Vector3).
|
||||
Reference in New Issue
Block a user