Skip to content

Use DOTNET_GLOBAL_INSTALL_DIR to specify where the SDKs will be installed#16686

Merged
mmitche merged 2 commits intomainfrom
DotNetInstallFolder
Apr 8, 2026
Merged

Use DOTNET_GLOBAL_INSTALL_DIR to specify where the SDKs will be installed#16686
mmitche merged 2 commits intomainfrom
DotNetInstallFolder

Conversation

@AndriySvyryd
Copy link
Copy Markdown
Member

@AndriySvyryd AndriySvyryd commented Apr 6, 2026

It will also be used for finding the SDKs if DOTNET_INSTALL_DIR is not set

Fixes #14283
Part of #1293

Validated both scripts manually

Copy link
Copy Markdown

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

Updates Arcade’s common bootstrap scripts to support installing (or locating) the required .NET SDK in a caller-specified “global” directory via DOTNET_GLOBAL_INSTALL_DIR, addressing scenarios where global.json includes additional runtimes.

Changes:

  • Add DOTNET_GLOBAL_INSTALL_DIR support as the preferred install root when the scripts would otherwise fall back to repo-local .dotnet.
  • Keep existing behavior of using DOTNET_INSTALL_DIR only when global.json does not specify additional runtimes and the required SDK version is present.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eng/common/tools.sh Uses DOTNET_GLOBAL_INSTALL_DIR as the dotnet install root when falling back from DOTNET_INSTALL_DIR / repo-local install logic.
eng/common/tools.ps1 Mirrors the same DOTNET_GLOBAL_INSTALL_DIR-based install root selection in PowerShell.

@mmitche
Copy link
Copy Markdown
Member

mmitche commented Apr 8, 2026

@AndriySvyryd What's the difference between this and using DOTNET_INSTALL_DIR?

@AndriySvyryd
Copy link
Copy Markdown
Member Author

@mmitche DOTNET_INSTALL_DIR is only used for lookup, DOTNET_GLOBAL_INSTALL_DIR also specifies where it will be installed

@mmitche mmitche merged commit bebe22e into main Apr 8, 2026
9 checks passed
@mmitche mmitche deleted the DotNetInstallFolder branch April 8, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arcade scripting ignores DOTNET_INSTALL_DIR if additional runtimes are specified

3 participants