VS2015未能正确加载解决方案中的一个或多个项目

VS2015未能正确加载解决方案中的一个或多个项目_第1张图片

像这样的错误就不应该出现,不要怀疑你的VS坏掉了!!也不要去别的电脑拷贝什么乱七八糟的文件!!!

问题就是你打开的项目中xxx.vcxproj文件中内容,VS找不到了!!

你需要做的是把这些内容找到,该删得删,该加环境变量的加环境变量。

最典型的一个例子就是在darknet的配置中有很多人问我出现了这个错误。

用notepad++打开darknet.vcxproj文件,基本上问题都出现在CUDA的版本上,文件中有两处关于CUDA的版本



  
    
      Debug
      Win32
    
    
      Debug
      x64
    
    
      Release
      Win32
    
    
      Release
      x64
    
  
  
    {4CF5694F-12A5-4012-8D94-9A0915E9FEB5}
    darknet
    8.1
  
  
  
    Application
    true
    v140
    MultiByte
  
  
    Application
    true
    v140
    MultiByte
  
  
    Application
    false
    v140
    true
    MultiByte
  
  
    Application
    false
    v140
    true
    MultiByte
  
  
  
    
  
  
    
  
  
    
  
  
    
  
  
    
  
  
  
    $(SolutionDir)$(Platform)\
  
  
    $(SolutionDir)$(Platform)\
    D:\opencv320\opencv\build\include\opencv;D:\opencv320\opencv\build\include\opencv2;D:\opencv320\opencv\build\include;$(IncludePath)
    D:\opencv320\opencv\build\x64\vc14\lib;$(LibraryPath)
  
  
    
      Level3
      Disabled
      true
    
    
      true
    
  
  
    
      Level3
      Disabled
      true
      C:\opencv_3.0\opencv\build\include;..\..\3rdparty\include;%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir);$(cudnn)\include
      CUDNN;_CRTDBG_MAP_ALLOC;_MBCS;_TIMESPEC_DEFINED;_CRT_SECURE_NO_WARNINGS;_CRT_RAND_S;GPU;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
      OPENCV;
      true
      stdlib.h;crtdbg.h;%(ForcedIncludeFiles)
    
    
      true
      C:\opencv_3.0\opencv\build\x64\vc14\lib;C:\opencv_2.4.13\opencv\build\x64\vc12\lib;C:\opencv_2.4.13\opencv\build\x64\vc14\lib;$(CUDA_PATH)lib\$(PlatformName);$(cudnn)\lib\x64;%(AdditionalLibraryDirectories)
      $(OutDir)\$(TargetName)$(TargetExt)
      ..\..\3rdparty\lib\x64\pthreadVC2.lib;cublas.lib;curand.lib;cudart.lib;%(AdditionalDependencies)
      true
    
    
      compute_30,sm_30;compute_52,sm_52
      64
    
  
  
    
      Level3
      MaxSpeed
      true
      true
      true
      C:\opencv_2.4.9\opencv\build\include;..\..\3rdparty\include;%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir);$(cudnn)\include
      OPENCV;_TIMESPEC_DEFINED;_CRT_SECURE_NO_WARNINGS;GPU;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
      true
    
    
      true
      true
      true
      C:\opencv_2.4.9\opencv\build\x86\vc14\lib;C:\opencv_2.4.9\opencv\build\x86\vc12\lib;$(CUDA_PATH)lib\$(PlatformName);$(cudnn)\lib\x64;%(AdditionalLibraryDirectories)
      ..\..\3rdparty\lib\x86\pthreadVC2.lib;cudart.lib;cublas.lib;curand.lib;%(AdditionalDependencies)
    
  
  
    
      Level3
      MaxSpeed
      true
      true
      true
      C:\opencv_3.0\opencv\build\include;..\..\3rdparty\include;%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir);$(cudnn)\include
      OPENCV;CUDNN;_TIMESPEC_DEFINED;_CRT_SECURE_NO_WARNINGS;_CRT_RAND_S;GPU;WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
      c11
      c++1y
      CompileAsCpp
      Default
      
      
      true
    
    
      true
      true
      true
      C:\opencv_3.0\opencv\build\x64\vc14\lib;C:\opencv_2.4.13\opencv\build\x64\vc14\lib;C:\opencv_2.4.13\opencv\build\x64\vc12\lib;$(CUDA_PATH)lib\$(PlatformName);$(cudnn)\lib\x64;%(AdditionalLibraryDirectories)
      ..\..\3rdparty\lib\x64\pthreadVC2.lib;cublas.lib;curand.lib;cudart.lib;opencv_world320.lib;%(AdditionalDependencies)
      $(OutDir)\$(TargetName)$(TargetExt)
    
    
      64
      compute_30,sm_30;compute_52,sm_52
    
  
  
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
  
  
  
    
  

 Ctrl+f找到相应的位置修改即可~

你可能感兴趣的:(VS2015)