Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Cli/dotnet/Commands/Run/CSharpCompilerCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public int Execute(out bool fallbackToNormalBuild)
// Write .rsp file and other intermediate build outputs.
PrepareAuxiliaryFiles(out string rspPath);

// Ensure the compiler is launched with the correct dotnet.
Environment.SetEnvironmentVariable("DOTNET_HOST_PATH", new Muxer().MuxerPath);

// Create a request for the compiler server
// (this is much faster than starting a csc.dll process, especially on Windows).
var buildRequest = BuildServerConnection.CreateBuildRequest(
Expand Down