diff --git a/src/Microsoft.DotNet.Tools.Run/Program.cs b/src/Microsoft.DotNet.Tools.Run/Program.cs index 52f82af3b..2fb54b855 100644 --- a/src/Microsoft.DotNet.Tools.Run/Program.cs +++ b/src/Microsoft.DotNet.Tools.Run/Program.cs @@ -69,7 +69,7 @@ namespace Microsoft.DotNet.Tools.Run var tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); // Compile to that directory - var result = Command.Create($"dotnet-compile", $"--output \"{tempDir}\" --framework \"{context.TargetFramework}\" --configuration \"{configuration}\" {context.ProjectFile.ProjectDirectory}") + var result = Command.Create($"dotnet-compile", $"--output \"{tempDir}\" --temp-output \"{tempDir}\" --framework \"{context.TargetFramework}\" --configuration \"{configuration}\" {context.ProjectFile.ProjectDirectory}") .ForwardStdOut(onlyIfVerbose: true) .ForwardStdErr() .Execute();