diff --git a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/Microsoft.DotNet.RemoteExecutor.csproj b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/Microsoft.DotNet.RemoteExecutor.csproj index 4360e26f087..83850d4e810 100644 --- a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/Microsoft.DotNet.RemoteExecutor.csproj +++ b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/Microsoft.DotNet.RemoteExecutor.csproj @@ -1,7 +1,7 @@  - netstandard2.0 + netcoreapp2.1;net472;netstandard2.0 This package provides support for running tests out-of-process. true true @@ -13,18 +13,35 @@ - + - - + + + - - - - + + + + + + + + + + + + + + diff --git a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/RemoteExecutor.cs b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/RemoteExecutor.cs index b2a49bf7e6c..ac37ba95c4d 100644 --- a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/RemoteExecutor.cs +++ b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/RemoteExecutor.cs @@ -19,7 +19,7 @@ public static partial class RemoteExecutor // The exit code returned when the test process exits successfully. public const int SuccessExitCode = 42; // The path of the remote executor. - public static readonly string Path = System.IO.Path.GetFullPath("Microsoft.DotNet.RemoteExecutorHost.dll"); + public static readonly string Path; // The name of the host public static string HostRunnerName; // The path of the host @@ -35,16 +35,19 @@ static RemoteExecutor() if (RuntimeInformation.FrameworkDescription.StartsWith(".NET Native", StringComparison.OrdinalIgnoreCase) || PlatformDetection.IsInAppContainer) { // Host is required to have a remote execution feature integrated. Currently applies to uap and *aot. + Path = processFileName; HostRunner = HostRunnerName; s_extraParameter = "remote"; } else if (RuntimeInformation.FrameworkDescription.StartsWith(".NET Core", StringComparison.OrdinalIgnoreCase)) { + Path = System.IO.Path.Combine(AppContext.BaseDirectory, "Microsoft.DotNet.RemoteExecutorHost.dll"); HostRunner = processFileName; s_extraParameter = Path; } else if (RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework", StringComparison.OrdinalIgnoreCase)) { + Path = System.IO.Path.Combine(AppContext.BaseDirectory, "Microsoft.DotNet.RemoteExecutorHost.exe"); HostRunner = Path; } else diff --git a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/build/Microsoft.DotNet.RemoteExecutor.targets b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/build/Microsoft.DotNet.RemoteExecutor.targets new file mode 100644 index 00000000000..4ef8ee528ea --- /dev/null +++ b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutor/build/Microsoft.DotNet.RemoteExecutor.targets @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/Microsoft.DotNet.RemoteExecutorHost.csproj b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/Microsoft.DotNet.RemoteExecutorHost.csproj index 05fffbe45dd..c1545067ad5 100644 --- a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/Microsoft.DotNet.RemoteExecutorHost.csproj +++ b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/Microsoft.DotNet.RemoteExecutorHost.csproj @@ -1,21 +1,10 @@ - Exe - netstandard2.0 + netcoreapp2.1;net472 true false - - - PreserveNewest - - - diff --git a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/Microsoft.DotNet.RemoteExecutorHost.runtimeconfig.json b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/Microsoft.DotNet.RemoteExecutorHost.runtimeconfig.json deleted file mode 100644 index 85789d0655a..00000000000 --- a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/Microsoft.DotNet.RemoteExecutorHost.runtimeconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "runtimeOptions": { - "rollForwardOnNoCandidateFx": 2, - "tfm": "netcoreapp2.0", - "framework": { - "name": "Microsoft.NETCore.App", - "version": "2.0.0" - } - } -} diff --git a/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/runtimeconfig.template.json b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/runtimeconfig.template.json new file mode 100644 index 00000000000..f022b7ffce1 --- /dev/null +++ b/src/Microsoft.DotNet.RemoteExecutor/src/Microsoft.DotNet.RemoteExecutorHost/runtimeconfig.template.json @@ -0,0 +1,3 @@ +{ + "rollForwardOnNoCandidateFx": 2 +} \ No newline at end of file