I have a solution with several ASP.NET Core projects in it, managed in Visual Studio 2015.
My NuGet packages are currently being stored in C:\Users\My User\.nuget\packages\
. I need to instead have a Packages directory in my solution and reference packages from there. Like this:
- SolutionFolder
- src
- Project1
- Project2
- [...]
- Packages
- src
I copied the packages from the default path above into a solution directory, then removed all references for a project. I then added my Packages directory as a NuGet Package Source. Finally, I clicked Manage NuGet Packages and added some to a specific project, making sure that my custom package source was selected.
This seemed to work, but when I checked the path of the referenced packages, it was still the default C:\Users\[...]\packages\
path.
What am I missing? How do I reference the packages from the solution directory?
I tried opening up the .xproj file and manually setting the path like I used to sometimes do in .csproj files, but it appears that isn't possible in .xproj files. Or I just don't know how to do it.