Skip to content

Record information about the resolved global.json usage in the SdkResolver  #30711

Open
@baronfel

Description

@baronfel

Is your feature request related to a problem? Please describe.

The SDK Resolver resolves an SDK according to any global.json rules that the .NET Host finds, and the Host reports back information like the path to the global.json, the version requested by the global.json, etc.

We should ensure that the SDK resolver logs this information via MSBuild properties to aid debugging - internal MSBuild users have been stumped by why a particular SDK was chosen when global.jsons far above the project root were at fault.

Describe the solution you'd like

We should log properties (or a single item with metadata) that provide the following data from the SDK Resolver:

  • the path of any resolved global.json file
  • the version requested in the global.json

This would make it easier for people debugging a build to determine if a global.json is impacting the build unexpectedly.

Metadata

Metadata

Assignees

Labels

Area-SdkResolvershelp wantedIssues that we would accept external contributions on. Also known as up-for-grabs.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions