Skip to content
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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

YuliiaKovalova
Copy link
Member

@YuliiaKovalova YuliiaKovalova commented Feb 5, 2025

Fixes #11331

path to sdk is hardcoded! it's an expected temp measure. See MSBuildAssemblyDirectory and MSBuildToolsDirectoryNET

@YuliiaKovalova YuliiaKovalova force-pushed the dev/ykovalova/support_launching_net_taskhost branch from 2d1cd86 to 9b892e9 Compare February 5, 2025 13:56
@YuliiaKovalova
Copy link
Member Author

ExampleNetTask.zip

Copy link
Member

@baronfel baronfel left a 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!

{
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");
Copy link
Member

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}";
Copy link
Member

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?

Copy link
Member Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support launching .NET taskhost
2 participants