We are developing multiple solutions in Visual Studio 2015. The solutions share some core projects that need nuget packages. The nuget references cannot be resolved when the nuget package is added from one solution and is later opened by another solution.
The folder structure is as follows:
- Codebase
- SharedProjects
- SharedProject1
- SolutionA
- WebProjectA
- packages folder A
- SolutionB
- WebProjectB
- packages folder B
- SharedProjects
When I install a nuget package to SharedProject1
when SolutionA
is opened, the dll reference shows the path to the packages folder A
. When SolutionB
is opened in another computer, SharedProject1
has a reference error since the packages folder A
doesn't exist.
I have read this solution: Setting up a common nuget packages folder for all solutions when some projects are included in multiple solutions but this doesn't solve the problem since the repositoryPath
key in the .nuget/NuGet.config file is not applied with Visual Studio 2015
and Nuget 3.4.3