Resolve test server paths deterministically (#1735)
Copilot-Session: ad8afb00-2809-4785-8781-014a90c8abf1
This commit is contained in:
parent
bdaa95c0ed
commit
5f5d5eac50
1 changed files with 9 additions and 5 deletions
|
|
@ -16,6 +16,8 @@ public class ClientIntegrationTestFixture
|
|||
public ClientIntegrationTestFixture()
|
||||
{
|
||||
const string ServerEverythingVersion = "2026.1.26";
|
||||
string testServerExecutable = Path.Combine(AppContext.BaseDirectory, "TestServer.exe");
|
||||
string testServerDll = Path.Combine(AppContext.BaseDirectory, "TestServer.dll");
|
||||
|
||||
EverythingServerTransportOptions = new()
|
||||
{
|
||||
|
|
@ -27,14 +29,14 @@ public class ClientIntegrationTestFixture
|
|||
|
||||
TestServerTransportOptions = new()
|
||||
{
|
||||
Command = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "TestServer.exe" : PlatformDetection.IsMonoRuntime ? "mono" : "dotnet",
|
||||
Command = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? testServerExecutable : PlatformDetection.IsMonoRuntime ? "mono" : "dotnet",
|
||||
Name = "TestServer",
|
||||
};
|
||||
|
||||
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
// Change to Arguments to "mcp-server-everything" if you want to run the server locally after creating a symlink
|
||||
TestServerTransportOptions.Arguments = [PlatformDetection.IsMonoRuntime ? "TestServer.exe" : "TestServer.dll"];
|
||||
TestServerTransportOptions.Arguments = [PlatformDetection.IsMonoRuntime ? testServerExecutable : testServerDll];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue