Skip to content

Commit 3365d4e

Browse files
baronfelCopilot
andauthored
Update docs/core/tools/dotnet-environment-variables.md
Co-authored-by: Copilot <[email protected]>
1 parent 8fd9568 commit 3365d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/tools/dotnet-environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ These environment variables are used only when running apps via generated execut
183183

184184
### `DOTNET_HOST_PATH`
185185

186-
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.
186+
Specifies the absolute path to a `dotnet` host (`dotnet.exe` on Windows, `dotnet` on Linux and macOS). This path represents either the host used to launch the currently-running `dotnet` process, or the host that would be used when running `dotnet` commands for the currently-building project when executing under MSBuild. The .NET SDK uses this variable 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 run within a build and invoke binaries via the `dotnet` host are expected to honor this environment variable to ensure a consistent experience.
187187

188188
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
189189
`DOTNET_HOST_PATH` - up to and including firing a diagnostic (warning or error) when the variable is not present.

0 commit comments

Comments
 (0)