Reference Blog: http://blog.csdn.net/u013277656/article/details/75040459
When compiling caffe on Windows, the Restore Nugetpackages folder is automatically loaded with VS open, which is the various libraries that Caffe need to rely on.
It took a long time. Restore complete compile-time error: Err MSB4062: Failed from assembly
E:\NugetPackages\OpenCV.2.4.10\build\native\private\coapp. NuGetNativeMSBuildTasks.dll Load Task "Nugetpackageoverlay". Failed to load file or assembly "File:///e:\nugetpackages\opencv.2.4.10\build\native\private\coapp. NuGetNativeMSBuildTasks.dll "or one of its dependencies. The system cannot find the file specified.
Make sure that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains the public class that implements Microsoft.Build.Framework.ITask ....
This is a very collapse, obviously is automatically downloaded, how can there be errors?
No way, want to use, methods or to find, after several searches, pro-test available methods, for those who encounter the same error reference.
The solution is as follows:
The first step: Update the Manage NuGet packages, project---you can see the updated button after OpenCV and click Update to opencv2.4.11.
After the update is complete, close the project again, do not worry about compiling, and the compilation will still error: Error 1 error:this project references NuGet package (s) is missing on the this computer. Enable NuGet Package for Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ... \nugetpackages\opencv.2.4.10\build\native\opencv.props. E:\software\caffe-ssd-microsoft\windows\libcaffe\libcaffe.vcxproj
Step Two:: Select each project of the solution, right-click, unload Project
After uninstalling, edit the vcxproj file,
Replace all the opencv.2.4.10 in the file with opencv.2.4.11, reload the project, and compile. (This is true of every project).
Ii. Supplementary measures
1. Modify the Nugetpackages\opencv.2.4.11\build\native folder inside the OpenCV configuration file Opencv.props, with the editor open later search private
Delete the \ in front of private;
2. Turn off vs2013 and restart vs with Administrator.
Windows compiler Caffe Error: Error MSB4062: Failed to E:\NugetPackages\OpenCV.2.4.10\ from assembly ... The solution