From ae723b9bea6488074e4752273b1060a837b4a4df Mon Sep 17 00:00:00 2001 From: Matthias Heil Date: Tue, 10 Nov 2026 10:55:06 +0100 Subject: [PATCH] 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`. --- PipeClient/PipeClient.csproj | 6 +++--- PipeClient/Program.cs | 6 +++--- PipeDemo.slnx | 6 +++--- PipeServer/PipeServer.csproj | 4 ++-- PipeServer/Program.cs | 2 +- PipeServer/ServerMethods.cs | 2 +- {Shared => PipeShared}/IServerMethods.cs | 2 +- {Shared => PipeShared}/JsonFieldsPipeSerializer.cs | 2 +- Shared/Shared.csproj => PipeShared/PipeShared.csproj | 0 9 files changed, 15 insertions(+), 15 deletions(-) rename {Shared => PipeShared}/IServerMethods.cs (93%) rename {Shared => PipeShared}/JsonFieldsPipeSerializer.cs (94%) rename Shared/Shared.csproj => PipeShared/PipeShared.csproj (100%) diff --git a/PipeClient/PipeClient.csproj b/PipeClient/PipeClient.csproj index 2723afa..2e9b308 100644 --- a/PipeClient/PipeClient.csproj +++ b/PipeClient/PipeClient.csproj @@ -1,8 +1,8 @@ - + - - + + diff --git a/PipeClient/Program.cs b/PipeClient/Program.cs index b53e89a..b62cbe3 100644 --- a/PipeClient/Program.cs +++ b/PipeClient/Program.cs @@ -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; diff --git a/PipeDemo.slnx b/PipeDemo.slnx index e263b75..3059c68 100644 --- a/PipeDemo.slnx +++ b/PipeDemo.slnx @@ -1,5 +1,5 @@ - - - + + + diff --git a/PipeServer/PipeServer.csproj b/PipeServer/PipeServer.csproj index 73d7a71..25a7d06 100644 --- a/PipeServer/PipeServer.csproj +++ b/PipeServer/PipeServer.csproj @@ -1,7 +1,7 @@ - + - + diff --git a/PipeServer/Program.cs b/PipeServer/Program.cs index f94db88..4cbd5ec 100644 --- a/PipeServer/Program.cs +++ b/PipeServer/Program.cs @@ -1,4 +1,4 @@ -using ClientServerShared; +using PipeShared; using PipeMethodCalls; using Server; diff --git a/PipeServer/ServerMethods.cs b/PipeServer/ServerMethods.cs index 0a3df13..64cf518 100644 --- a/PipeServer/ServerMethods.cs +++ b/PipeServer/ServerMethods.cs @@ -1,4 +1,4 @@ -using ClientServerShared; +using PipeShared; using System.Collections.Concurrent; using System.Numerics; diff --git a/Shared/IServerMethods.cs b/PipeShared/IServerMethods.cs similarity index 93% rename from Shared/IServerMethods.cs rename to PipeShared/IServerMethods.cs index 53f9699..2b9efbe 100644 --- a/Shared/IServerMethods.cs +++ b/PipeShared/IServerMethods.cs @@ -1,6 +1,6 @@ using System.Numerics; -namespace ClientServerShared; +namespace PipeShared; public interface IServerMethods { diff --git a/Shared/JsonFieldsPipeSerializer.cs b/PipeShared/JsonFieldsPipeSerializer.cs similarity index 94% rename from Shared/JsonFieldsPipeSerializer.cs rename to PipeShared/JsonFieldsPipeSerializer.cs index cd00d13..b8e8484 100644 --- a/Shared/JsonFieldsPipeSerializer.cs +++ b/PipeShared/JsonFieldsPipeSerializer.cs @@ -1,7 +1,7 @@ using PipeMethodCalls; using System.Text.Json; -namespace ClientServerShared; +namespace PipeShared; /// /// JSON serializer that also includes public fields (required for System.Numerics.Vector3). diff --git a/Shared/Shared.csproj b/PipeShared/PipeShared.csproj similarity index 100% rename from Shared/Shared.csproj rename to PipeShared/PipeShared.csproj