Apr 18, 2012 at 5:22 PM
Edited Apr 18, 2012 at 5:26 PM
Hi I hope somebody can help.
I have a solution in TFS 2010. The solution has several projects with NuGet references to things like Moq, Log4net etc. And we are using NuGet Package Restore, so not checking the package folder into source control.
So on to my issue. When I try to open the solution from scratch (ie NO CODE EXISTS ON THE LOCAL HARD DRIVE!) using the menu
File -> Source Control -> Open From Source Control... it fails to load all of the projects which have references installed from NuGet. The actual error is as follows:
One or more projects in the solution were not loaded correctly. Please see the Output Window for details.
And then in the Output Window I have an entry like this for every project with NuGet references:
C:\TFSProjects\Test\ExceptionManagement\ExceptionManagement.csproj : error : Unable to read the project file 'ExceptionManagement.csproj'.
C:\TFSProjects\Test\ExceptionManagement\ExceptionManagement.csproj(189,3): The imported project "C:\TFSProjects\Test\.nuget\nuget.targets" was not found. Confirm that the path in the <Import> declaration is correct,
and that the file exists on disk.
Has anyone come across this issue?