[DCR]: NuGet SDK resolver should cache global.json itself #11450
Labels
Priority:2
Issues for the current backlog.
Product:MSBuildSDKResolver
The NuGet powered SDK resolver. Owned by MSBuild team
Type:DCR
Design Change Request
Milestone
NuGet Product(s) Affected
MSBuild.exe, dotnet.exe
Current Behavior
Currently the NuGet SDK resolver relies on the MSBuild SDK resolver APIs to save state. However, the state is not guaranteed to be thread-safe and so currently the NuGet SDK resolver is parsing global.json many times by Visual Studio. This is because the state is only set after a resolver completes and the cache key is a build submission. Visual Studio issues several design time builds will load global.json over and over.
Desired Behavior
The NuGet SDK resolver should have its own file cache that only loads a file once unless it has changed.
Additional Context
No response
The text was updated successfully, but these errors were encountered: