Skip to content

Scope SDK-generated MSBuild paths to the current invocation #55772

Closed

Description

@OvesN

Problem

dotnet sets MSBuildExtensionsPath and MSBuildSDKsPath for its selected SDK. Descendant dotnet commands inherit those values even when they select a different SDK, which can mix SDK components and fail while loading tasks.

Failure: https://github.com/jaredpar/complog/actions/runs/31601500191/job/94129782284?pr=375
Repro/details: dotnet/msbuild#14699

Expected

SDK-generated paths should be scoped to the immediate MSBuild invocation, not exposed as ambient state to unrelated child processes. Explicit user overrides must remain supported.

The top-level CLI should decide the effective values and map them to MSBuild through CLI-owned startup state/properties; nested dotnet commands should compute paths for their own selected SDK.

Activity

  1. added
    untriaged
    on Aug 13, 2026
  2. OvesN commented on Aug 13, 2026

    @OvesN
    ContributorAuthor

    Filed in the wrong repository. Continuing in dotnet/msbuild#14701.

  3. removed
    untriaged
    on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions