vs2019报错:配置“Debug|Win32”的 Designtime 生成失败IntelliSense 可能不可用的问题
vs2019报错内容:
配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用
出错内容
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
设置环境变量TRACEDESIGNTIME=true并重启VisualStudio以进行调查。
查找错误
于是,按照报错中的提示,添加环境变量TRACEDESIGNTIME=true,重新打开visualstudio项目,得到下面的结果
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
错误:项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的Designtime生成失败。IntelliSense可能不可用。
检查%TEMP%目录中的*.designtime.log文件。
这里有个问题,怎么知道%TEMP%在哪里,我通常常是在命令提示符下这做的,
C:\Users\Administrator>%temp%
'C:\Users\ADMINI~1\AppData\Local\Temp'不是内部或外部命令,也不是可运行的程序
或批处理文件。
可以看到,%TEMP%原来就是这个文件夹,C:\Users\Administrator\AppData\Local\Temp(根据用户名不同而不同),然后,根据提示,在其下找到这些文件,我算了一下,大概上面每一条对应4个这样的文件,总共有一大堆:
(文件名是一长串数字).designtime.log
随便打开其中一个,一直往后拉,看报错的地方,内容大致如下,
项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”(GetProjectDirectories个目标):
正在使用工具版本“Current”进行生成。
D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj(55,5):errorMSB4019:找不到导入的项目“C:\ProgramFiles(x86)\MicrosoftVisualStudio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA10.0.props”。请确认Import声明“C:\ProgramFiles(x86)\MicrosoftVisualStudio\2019\Community\MSBuild\Microsoft\VC\v160\\BuildCustomizations\CUDA10.0.props”中的表达式正确,且文件位于磁盘上。
已完成生成项目“darknet.vcxproj”的操作-失败。
项目评估性能摘要:
0毫秒D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj 1次调用
项目性能摘要:
1毫秒D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj 1次调用
生成失败。
D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj(55,5):errorMSB4019:找不到导入的项目“C:\ProgramFiles(x86)\MicrosoftVisualStudio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA10.0.props”。请确认Import声明“C:\ProgramFiles(x86)\MicrosoftVisualStudio\2019\Community\MSBuild\Microsoft\VC\v160\\BuildCustomizations\CUDA10.0.props”中的表达式正确,且文件位于磁盘上。
0个警告
1个错误
已用时间00:00:01.77
提示找不到项目,要求确认Import声明“C:\ProgramFiles(x86)\MicrosoftVisualStudio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA10.0.props”中的表达式正确,
处理错误
接下来,打开下面这个文件夹看一下,
C:\ProgramFiles(x86)\MicrosoftVisualStudio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\
发现确实没有CUDA10.0.props这个文件,但是有CUDA10.1.props(这个是我使用的版本);
然后,用记事本打开darknet.vcxproj,所里面所有的CUDA10.0.props都替换成CUDA10.1.props,问题解决。
总结
该报错由路径错误引起,至于具体是哪个路径不对,需要根据自己的项目来处理。基本上根据前面提到的方法,一步一步,应该很快能定位错误的位置。
其他参考
另外,在微软官网上有这么一段,不过当时是软件BUG,现在的VS2019中,出现这个错误的话,一般就是路径有问题了
https://developercommunity.visualstudio.com/content/problem/776877/error-designtime-build-failed-for-project-cuserstc.html
error:Designtimebuildfailedforproject'C:\Users\tcjso\source\repos\MazeProgram\MazeProgram\MazeProgram.vcxproj'configuration'Debug|Win32'.IntelliSensemightbeunavailable.SetenvironmentvariableTRACEDESIGNTIME=trueandrestartVisualStudiotoinvestigate.
Closed-Fixedfixedin:visualstudio2019version16.4visualstudio2019version16.3windows10.0FixedIn:VisualStudio2019version16.4Preview4
TimothyC.JohnsonSoftwareAuthorreportedOct15,2019at01:31AM
[regression][worked-in:Don'tknow-theoneB4latestupdate.]IgotthiserroropeningaprojectIwasworkingonafterthelatestVSupdate:error:Designtimebuildfailedforproject‘C:\Users\tcjso\source\repos\MazeProgram\MazeProgram\MazeProgram.vcxproj'configuration‘Debug|Win32'.IntelliSensemightbeunavailable.SetenvironmentvariableTRACEDESIGNTIME=trueandrestartVisualStudiotoinvestigate.Seemstohaveseveralofthem.Thanks,Tim
Showcomments6
Thisissueisreadonly,becauseithasbeeninClosed–Fixedstateforover90days.Itwasclosedfor234days.
SolutionsMicrosoftSolution
byVisualStudioFeedbackSystemNov14,2019at09:19AM
Changedstate➜Closed-Fixed
Afixforthisissuehasbeenreleased!Installthemostrecentreleasefromhttps://visualstudio.microsoft.com/downloads/.Thankyouforprovidingvaluablefeedbackwhichhashelpedimprovetheproduct.
Thisissuehasbeenclosedforover90days.Ifwehaven'tresolvedthisissueforyou,pleasereportanewproblem
Yes,itworksFixedwithnoextrasteps0No,ItriedeverythingPleasere-openthis0
Solution
byTimothyC.JohnsonSoftwareAuthorOct21,2019at02:55AM
IhaveREPAIREDVisualStudiowithVSIandtheproblemsarenotshowingupanymore.Thanks,Tim
总结
到此这篇关于vs2019报错:配置“Debug|Win32”的Designtime生成失败IntelliSense可能不可用的文章就介绍到这了,更多相关vs2019报错配置“Debug|Win32”的Designtime生成失败内容请搜索毛票票以前的文章或继续浏览下面的相关文章希望大家以后多多支持毛票票!