Friday, 22 June 2012

NuGet references in solutions

If a project is shared between two solutions, and that project uses NuGet, then you have to ensure that the NuGet.targets file is added to both solutions or the project will fail to load in the solution that does not have it.

To solve the problem on the failed solution, right click the solution and select "Enable NuGet Package Restore". This will create the .nuget folder and the NuGet.targets file.

No comments:

Post a comment