I am working on a silverlight application. We use nuget packages, but we do not check the packages, and the packages must be restored during construction. The solution compiles well in visual studio. I am trying to add a compiled task on the command line using msbuild
Exec {C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ msbuild.exe $ slnFile / p: OutputPath = $ outputPath / p: Configuration = Release / p: SolutionDir = $ rootDir \ Source \ / verbosity: minimum / nologo / m: 4} "Build failed
Before doing this step, I do nuget recovery explicitly.
Exec {C: \ project \ nuget.exe restore $ solutionFile} "restore failed"
This step goes with the message "All packages listed in packages.config" are already installed.
But when the actual build step occurs, the build completes with a message
This project refers to NuGet packages that are not available on this computer. Turn on NuGet package recovery to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105 . Invalid file: \ Source \ .nuget \ NuGet.targets.
I am performing nuget recovery explicitly and I turned on
"Allow nuget to download missing packages" in visual studio and "Enable nuget package recovery" at the solution level.
My nuget.config has a value of "disableSourceControlIntegration" = "true"
I saw similar problems in stackoverflow and I tried all of the above solutions that were suggested. I have no clue why he is failing, despite all this.
source share