-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DRAFT] Support launching net taskhost #11393
base: main
Are you sure you want to change the base?
[DRAFT] Support launching net taskhost #11393
Conversation
2d1cd86
to
9b892e9
Compare
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.
Some general questions as I was idly looking at the work so far :) Happy to see this start!
src/Build/BackEnd/Components/Communications/NodeProviderOutOfProcTaskHost.cs
Outdated
Show resolved
Hide resolved
{ | ||
if (s_pathToX32Clr4 == null) | ||
// if we want some flexibility in the future, we can add a new environment variable for this. | ||
var envTaskHostPathNet = Environment.GetEnvironmentVariable("DOTNET_HOST_PATH"); |
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.
future/question: I think longer-term we want to try and run the SDK resolver to get the path to dotnet, right?
{ | ||
// Start the new process. We pass in a node mode with a node number of 2, to indicate that we | ||
// want to start up an MSBuild task host node. | ||
commandLineArgs = $"/nologo /nodemode:2 /nodereuse:{ComponentHost.BuildParameters.EnableNodeReuse} /low:{ComponentHost.BuildParameters.LowPriority}"; |
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.
the rest of these arguments (node reuse/priority) should be applied to the .NET-host command line too, right?
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.
not sure
@rainersigwald could you clarify this point, please?
Fixes #11331
path to sdk is hardcoded! it's an expected temp measure. See MSBuildAssemblyDirectory and MSBuildToolsDirectoryNET