We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0439a83 commit eacb57bCopy full SHA for eacb57b
src/Cli/dotnet/Commands/Run/CSharpCompilerCommand.cs
@@ -72,6 +72,9 @@ public int Execute(out bool fallbackToNormalBuild)
72
// Write .rsp file and other intermediate build outputs.
73
PrepareAuxiliaryFiles(out string rspPath);
74
75
+ // Ensure the compiler is launched with the correct dotnet.
76
+ Environment.SetEnvironmentVariable("DOTNET_HOST_PATH", new Muxer().MuxerPath);
77
+
78
// Create a request for the compiler server
79
// (this is much faster than starting a csc.dll process, especially on Windows).
80
var buildRequest = BuildServerConnection.CreateBuildRequest(
0 commit comments