MSBuild SDK Resolver installing package into user-wide globalPackagesFolder, not project specific one #14003
Labels
Product:MSBuildSDKResolver
The NuGet powered SDK resolver. Owned by MSBuild team
Type:Bug
WaitingForCustomer
Applied when a NuGet triage person needs more info from the OP
NuGet Product Used
dotnet.exe
Product Version
9.0.0
Worked before?
No
Impact
It bothers me. A fix would be nice
Repro Steps & Context
I have a custom nuget.config file located in a parent directory to a number of project files. These project files reference a custom MSBuild SDK. The goal is for this project to have it's own private nuget packages directory and source directory. They get cleared on each run. This is a testing framework for a custom SDK.
The file is generated for each run and looks like this:
When MSBuild tries to restore the SDK, however, it places it in my default global package cache:
As you can see from this message, it grabbed the package from the correct source location. But it is extracting it to the wrong location.
@baronfel (on DotNetEvolution) did a check to see if the MSBuild code loaded the settings correctly. He affirms it does so and advised me to open this bug.
Verbose Logs
I do have a very large log file, but there are only a handful of messages related to SDK resolution:
It continues from the above.
Each time I clear the global directory and rerun it reextracts the nugpkg into the same incorrect location. Tried clearing it completely.
The text was updated successfully, but these errors were encountered: