南强小屋 Design By 杰米

vs2019报错内容:
配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用

出错内容

 错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。
错误 : 项目“D:\mTensorflow\yolov4_darknet-master\build\darknet\darknet.vcxproj”配置“Debug|Win32”的 Designtime 生成失败。IntelliSense 可能不可用。
    设置环境变量 TRACEDESIGNTIME = true 并重启 Visual Studio 以进行调查。

查找错误

于是,按照报错中的提示,添加环境变量TRACEDESIGNTIME = true,重新打开visual studio项目,得到下面的结果

错误 : 项目“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 个目标):
"color: #ff0000">处理错误

接下来,打开下面这个文件夹看一下,

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\

发现确实没有CUDA 10.0.props这个文件,但是有CUDA 10.1.props(这个是我使用的版本);

然后,用记事本打开darknet.vcxproj,所里面所有的CUDA 10.0.props都替换成CUDA 10.1.props,问题解决。

总结

该报错由路径错误引起,至于具体是哪个路径不对,需要根据自己的项目来处理。基本上根据前面提到的方法,一步一步,应该很快能定位错误的位置。

其他参考

另外,在微软官网上有这么一段,不过当时是软件BUG,现在的VS2019中,出现这个错误的话,一般就是路径有问题了

https://developercommunity.visualstudio.com/content/problem/776877/error-designtime-build-failed-for-project-cuserstc.html

error : Designtime build failed for project 'C:\Users\tcjso\source\repos\MazeProgram\MazeProgram\MazeProgram.vcxproj' configuration 'Debug|Win32'. IntelliSense might be unavailable. Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate.

Closed - Fixed fixed in: visual studio 2019 version 16.4visual studio 2019 version 16.3windows 10.0Fixed In: Visual Studio 2019 version 16.4 Preview 4

Timothy C. Johnson Software Author reported Oct 15, 2019 at 01:31 AM

[regression] [worked-in:Don't know - the one B4 latest update.] I got this error opening a project I was working on after the latest VS update:error : Designtime build failed for project ‘C:\Users\tcjso\source\repos\MazeProgram\MazeProgram\MazeProgram.vcxproj' configuration ‘Debug|Win32'. IntelliSense might be unavailable. Set environment variable TRACEDESIGNTIME = true and restart Visual Studio to investigate.Seems to have several of them.Thanks,Tim

Show comments 6

This issue is read only, because it has been in Closed–Fixed state for over 90 days. It was closed for 234 days.

SolutionsMicrosoft Solution

by Visual Studio Feedback System Nov 14, 2019 at 09:19 AM

Changed state "external nofollow" href="https://visualstudio.microsoft.com/downloads/">https://visualstudio.microsoft.com/downloads/ . Thank you for providing valuable feedback which has helped improve the product.

This issue has been closed for over 90 days. If we haven't resolved this issue for you, pleasereport a new problem

Yes, it worksFixed with no extra steps0 No, I tried everythingPlease re-open this0

Solution

by Timothy C. Johnson Software Author Oct 21, 2019 at 02:55 AM

I have REPAIRED Visual Studio with VSI and the problems are not showing up anymore.Thanks,Tim

总结

标签:
vs2019报错配置“Debug|Win32”的,Designtime,生成失败,IntelliSense,可能不可用

南强小屋 Design By 杰米
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
南强小屋 Design By 杰米

评论“vs2019报错:配置“Debug|Win32”的 Designtime 生成失败IntelliSense 可能不可用的问题”

暂无vs2019报错:配置“Debug|Win32”的 Designtime 生成失败IntelliSense 可能不可用的问题的评论...

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。