-
Notifications
You must be signed in to change notification settings - Fork 1.2k
MSBuild server V1 #17916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSBuild server V1 #17916
Conversation
Also se: dotnet/msbuild#6494
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
| internal class MSBuildForwardingAppWithoutLogging | ||
| { | ||
| private static readonly bool AlwaysExecuteMSBuildOutOfProc = Env.GetEnvironmentVariableAsBool("DOTNET_CLI_RUN_MSBUILD_OUTOFPROC"); | ||
| private static readonly bool DoNotUseMSBUILDNOINPROCNODE = Env.GetEnvironmentVariableAsBool("DOTNET_CLI_DO_NOT_USE_MSBUILDNOINPROCNODE"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Maybe remove the double negation: DOTNET_CLI_USE_MSBUILD_INPROC_NODE ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to keep name same as is the MSBUILD escape hatch toi avoid confusion between your OUTOFPROC and mine NOINPROC. People might get impression that OUTOFPROC == NOINPROC and get confused why we have two escapes for same thing. Ithough about DOTNET_CLI_DONT_USE_MSBUILD_SERVER_V1 but I believe it is confusing for anyone without knowledge of msbuild server background....
This reverts commit c0e7d2f.
To improve inner loop experience of building small project fast in scenarios:
dotnet new console
dotnet build/run
We force MSBuild to always use external reusable nodes/processes to build projects.
Measured improvement: #6467
Implementation:
Modify SDK to set MSBUILDNOINPROCNODE = 1
Implement escape hatches DOTNET_DO_NOT_USE_MSBUILDNOINPROCNODE = 1
Also see: dotnet/msbuild#6494