Skip to content

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Oct 22, 2025

In .NET 10 / VS2026 we have a new invariant for DOTNET_HOST_PATH in builds that we should document.


Internal previews

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

In .NET 10 / VS2026 we have a new invariant for DOTNET_HOST_PATH in builds that we should document
@Copilot Copilot AI review requested due to automatic review settings October 22, 2025 22:35
@baronfel baronfel requested a review from a team as a code owner October 22, 2025 22:35
@dotnetrepoman dotnetrepoman bot added this to the October 2025 milestone Oct 22, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the documentation for the DOTNET_HOST_PATH environment variable to reflect new behavior in .NET 10 / Visual Studio 2026. The key change is that MSBuild in Visual Studio 2026 will now guarantee that DOTNET_HOST_PATH is set for all builds of .NET SDK projects, representing a shift in how this environment variable should be used.

Key Changes:

  • Expanded the description to clarify that DOTNET_HOST_PATH applies both to running processes and to MSBuild build scenarios
  • Removed the conditional algorithm for locating dotnet (previously advising fallback to PATH)
  • Added guidance that MSBuild tools should expect DOTNET_HOST_PATH to be set and may emit diagnostics when missing

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
baronfel and others added 2 commits October 22, 2025 17:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
baronfel and others added 2 commits October 22, 2025 18:44
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
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.

2 participants