Restore failures with mixed projects (PC & PR) & global packages folder and packages folder point to the same location #7692
Labels
Area:ErrorHandling
warnings and errors/log messages & related error codes.
Area:Settings
NuGet.Config and related issues
Functionality:Restore
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Product:NuGet.exe
NuGet.exe
Product:VS.Client
Status:Excluded from icebox cleanup
Status:Inactive
Icebox issues not updated for a specific long time
Type:Bug
Milestone
I have a solution that contains both project with the new (.NET Core) csproj-Format as well as some classic (WPF) projects and in the solution directory I have the follwoing nuget.config file:
when I run
nuget.exe local -list all
I get the following output:When I run
nuget.exe restore
all packages are correctly restored to the local packages folder inC:\mysolution\packages
.However when I rightclick the solution in the VS 2017 solution explorer, and to "Rebuild Solution" or "Restore NuGet Packages", only the packages referenced by the classic (WPF) projects are being restored to that local packages folder. All packages that are referenced by the .NET Core projects are restored to the global folder in
%userprofile%\.nuget\packages
I am desperately trying to find a decent workflow where I can quickly test and update packages in one solution that are being built in another solution during local development. That's the whole purpose of changing the global packages folder. #7678
NuGet product used: VS UI
NuGet version: 4.9.2.0
dotnet.exe --version: 2.2.102
OS version: Win10 v1809
The text was updated successfully, but these errors were encountered: