-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Tweak the wording on DOTNET_HOST_PATH docs to align with the new world #49422
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8fd9568
Tweak the wording on DOTNET_HOST_PATH docs to align with the new world
baronfel 3365d4e
Update docs/core/tools/dotnet-environment-variables.md
baronfel bad6ae6
Update docs/core/tools/dotnet-environment-variables.md
baronfel 48bc2a8
Fix whitespace
baronfel 4e1edd2
Update docs/core/tools/dotnet-environment-variables.md
baronfel 1ca22f8
Update docs/core/tools/dotnet-environment-variables.md
baronfel f640117
Re-add NOTE
baronfel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -183,15 +183,10 @@ | |
|
|
||
| ### `DOTNET_HOST_PATH` | ||
|
|
||
| Specifies the absolute path to a `dotnet` host (`dotnet.exe` on Windows, `dotnet` on Linux and macOS) that was used to launch the currently-running `dotnet` process. This is used by the .NET SDK to help tools that run during .NET SDK commands ensure they use the same `dotnet` runtime for any child `dotnet` processes they create for the duration of the command. Tools and MSBuild Tasks within the SDK that invoke binaries via the `dotnet` host are expected to honor this environment variable to ensure a consistent experience. | ||
| Specifies the absolute path to a `dotnet` host (`dotnet.exe` on Windows, `dotnet` on Linux and macOS) that was used to launch the currently-running `dotnet` process, or that would be used when running `dotnet` commands for the currently-building project when executing under MSBuild. This is used by the .NET SDK to help tools that run during .NET SDK commands ensure they use the same `dotnet` host configuration for any child `dotnet` processes they create for the duration of the command. Tools and any MSBuild logic that runs within a build that invoke binaries via the `dotnet` host are expected to honor this environment variable to ensure a consistent experience. | ||
|
Check failure on line 186 in docs/core/tools/dotnet-environment-variables.md
|
||
|
|
||
| Tools that invoke `dotnet` during an SDK command should use the following algorithm to locate it: | ||
|
|
||
| - if `DOTNET_HOST_PATH` is set, use that value directly | ||
| - otherwise, rely on `dotnet` via the system's `PATH` | ||
|
|
||
| > [!NOTE] | ||
baronfel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| > `DOTNET_HOST_PATH` is not a general solution for locating the `dotnet` host. It is only intended to be used by tools that are invoked by the .NET SDK. | ||
| Starting in Visual Studio 2026, MSBuild in Visual Studio will _also_ ensure that `DOTNET_HOST_PATH` is set for all builds of .NET SDK projects. For greatest consistency, all MSBuild tools and logic that want to use _the same dotnet binary_ as the one that spawned the build should rely on | ||
|
Check failure on line 188 in docs/core/tools/dotnet-environment-variables.md
|
||
| `DOTNET_HOST_PATH` - up to and including firing a diagnostic (warning or error) when the variable is not present. | ||
baronfel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
baronfel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### `DOTNET_LAUNCH_PROFILE` | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.