diff --git a/src/Tye.Hosting/ProcessRunner.cs b/src/Tye.Hosting/ProcessRunner.cs index 418819b90..e1d4b055d 100644 --- a/src/Tye.Hosting/ProcessRunner.cs +++ b/src/Tye.Hosting/ProcessRunner.cs @@ -280,7 +280,7 @@ private static string GetExePath(string projectFilePath) { // TODO: Use msbuild to get the target path - var outputFileName = Path.GetFileNameWithoutExtension(projectFilePath) + (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : ""); + var outputFileName = Path.GetFileNameWithoutExtension(projectFilePath) + (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : ".dll"); var debugOutputPath = Path.Combine(Path.GetDirectoryName(projectFilePath)!, "bin", "Debug"); diff --git a/src/Tye.Hosting/Tye.Hosting.csproj b/src/Tye.Hosting/Tye.Hosting.csproj index 4e8488a39..0fc313206 100644 --- a/src/Tye.Hosting/Tye.Hosting.csproj +++ b/src/Tye.Hosting/Tye.Hosting.csproj @@ -25,6 +25,7 @@ + diff --git a/test/E2ETest/E2ETest.csproj b/test/E2ETest/E2ETest.csproj index b77c798c5..f2e093ba3 100644 --- a/test/E2ETest/E2ETest.csproj +++ b/test/E2ETest/E2ETest.csproj @@ -6,6 +6,10 @@ false + + + + diff --git a/test/E2ETest/TyeRunTest.cs b/test/E2ETest/TyeRunTest.cs index a7692b088..6476529f8 100644 --- a/test/E2ETest/TyeRunTest.cs +++ b/test/E2ETest/TyeRunTest.cs @@ -8,6 +8,7 @@ using System.Net; using System.Net.Http; using System.Threading.Tasks; +using Tye; using Tye.ConfigModel; using Tye.Hosting; using Xunit; @@ -19,8 +20,14 @@ public class TyeRunTest [Fact] public async Task SingleProjectTest() { - var application = ConfigFactory.FromFile(new FileInfo(Path.Combine(GetSolutionRootDirectory("tye"), "samples", "single-project", "test-project", "test-project.csproj"))); - var host = new TyeHost(application.ToHostingApplication(), new string[0]); + var projectDirectory = new DirectoryInfo(Path.Combine(GetSolutionRootDirectory("tye"), "samples", "single-project", "test-project")); + using var tempDirectory = TempDirectory.Create(); + DirectoryCopy.Copy(projectDirectory.FullName, tempDirectory.DirectoryPath); + + var projectFile = new FileInfo(Path.Combine(tempDirectory.DirectoryPath, "test-project.csproj")); + + var application = ConfigFactory.FromFile(projectFile); + var host = new TyeHost(application.ToHostingApplication(), Array.Empty()); await host.StartAsync(); try {