Reputation: 13
When I try to build my mvc3 application with Visual Studio 2010 Prompt. I get this error:
"TournamentCompanion.csproj" (default target) (1) -> TournamentCompanion.csproj(553,3): error MSB4019: The imported project "TournamentCompanion(1)\.nuget\nuget.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
, but the import in the .csproj says:
Import Project="$(SolutionDir)\.nuge\nuget.targets"
and this is what my solution looks like:
project
I can't find a solution to the problem.
Upvotes: 1
Views: 1092
Reputation: 9938
Try this instead and see if you get the same error:
<Import Project="$(MSBuildThisFileDirectory)\..\.nuget\nuget.targets" />
It has the additional benefit of not using a solution-relative path, clearing the way for you to build without the solution file at all if you want a stronger foundation on which to construct an industrial strength command line build.
[Excerpted from MSBuild Trickery trick #80]
Upvotes: 1