Skip to content

Conversation

@baronfel
Copy link
Member

@baronfel baronfel commented Jul 25, 2023

Summary

Based on conversations in dotnet/runtime#88754, dotnet/roslyn#69186, and other places, we need documentation about this environment variable and its purpose. This is a draft of that documentation - though we may also need a dedicated page for "How should I locate the correct dotnet binary?" for application developers.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/dotnet-environment-variables.md .NET environment variables

@vitek-karas
Copy link
Member

@MarcoRossignoli
Copy link
Member

MarcoRossignoli commented Jul 26, 2023

though we may also need a dedicated page for "How should I locate the correct dotnet binary?"

@baronfel in the test repo we have the alg to find out correct dotnet muxer per architecture and per OS, using env vars(DOTNET_ROOT*), installation location(specific installation location for Windows/Mac) and default installation path https://github.com/microsoft/vstest/blob/main/src/Microsoft.TestPlatform.CoreUtilities/Helpers/DotnetHostHelper.cs#L121
maybe we could think to ship something open like the msbuildlocator for devs.

clarify that this impacts subprocesses only, and is very focused on the .NET SDK, not a general mechanism
@BillWagner BillWagner modified the milestones: July 2023, August 2023 Jul 31, 2023
Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @baronfel!

@baronfel baronfel marked this pull request as ready for review August 3, 2023 20:47
@baronfel baronfel requested a review from tdykstra as a code owner August 3, 2023 20:47
@baronfel baronfel merged commit 5787938 into dotnet:main Aug 3, 2023
@baronfel baronfel deleted the document-dotnet-host-path-env-var branch August 16, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.