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

Add description and initial guidance for DOTNET_HOST_PATH usage #36383

Merged
merged 8 commits into from
Aug 3, 2023

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
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
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
Co-authored-by: Rich Lander <rlander@microsoft.com>
Co-authored-by: Rich Lander <rlander@microsoft.com>
@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.