Skip to content

Update global.json #117460

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Update global.json #117460

wants to merge 4 commits into from

Conversation

ViktorHofer
Copy link
Member

Use the new paths feature and allow newer SDKs when building

https://learn.microsoft.com/en-us/dotnet/core/tools/global-json#paths

Use the new paths feature and allow newer SDKs when building

https://learn.microsoft.com/en-us/dotnet/core/tools/global-json#paths
@Copilot Copilot AI review requested due to automatic review settings July 9, 2025 13:51
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 enhances the global.json for SDK lookup flexibility by introducing the new paths feature, allowing SDK roll-forward on major versions, and providing a custom error message when the required SDK is missing.

  • Added "paths" array to include local .dotnet folder and $host$ placeholder.
  • Kept "rollForward": "major" to permit newer SDKs.
  • Included "errorMessage" to guide developers to the install script.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@huoyaoyuan
Copy link
Member

Can we remove the dotnet.cmd/sh helper when 10.0 releases and the feature is GA?

@ViktorHofer
Copy link
Member Author

ViktorHofer commented Jul 9, 2025

Yes, when VS supports it fully :)

@agocke
Copy link
Member

agocke commented Jul 9, 2025

Note: won’t help for runtime execution. It’s an sdk only feature. We might want to keep the scripts around if someone needs to run a tool on the latest

@agocke
Copy link
Member

agocke commented Jul 9, 2025

(Also ‘dnvm restore’ will just install the sdk locally so you don’t have to worry about this).

@ViktorHofer
Copy link
Member Author

Right but I would still want to replace these scripts eventually with the eng/common/dotnet.cmd/sh scripts that we now have.

@akoeplinger
Copy link
Member

The WasmBuildTests failures are related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

5 participants