I’m setting up a new laptop for my development work. I have fetched the latest code from the remote repo, and have no uncommitted changes.
Our .NET-based solution has a number of NuGet package references. When I first opened the solution I was told that the packages were missing from this computer, so I clicked the option to have them restored. They were then downloaded – I can see them in the solution’s packages
folder.
However, when building the solution, one of the projects – and only one – tells me that the references (which come from those NuGet packages) cannot be found. Opening the References
node, I can see that they all have yellow warning indicators.
I’ve compared the project file for the problem project with that of a ‘good’ project, and the <Reference />
elements are identical – the <HintPath />
values do point to the correct .dll in the solution’s packages
folder.
Here is a screenshot from another project in the same solution – you can see that the same package references are recognised…
Both projects specify the same package references…
I’ve cleaned the solution, I’ve deleted-and-restored all packages, I’ve removed and re-added NuGet references… I don’t know what else to try.
Can anyone explain why these package references are not loading for this one project?
10