visual-studio - Visual Studio - 如何检查我的程序需要运行哪些 DLL/遗漏了哪些 DLL?
问题描述
我刚刚下载了 Visual Studio 2017 社区。
一旦我尝试使用任何配置(发布/调试、x86/x64、空项目/windows 控制台应用程序)编译任何程序(甚至是最简单的“Hello World”),我就会收到以下错误:
Microsoft.CppCommon.targets(381,5): error MSB6006: error MSB6006: "CL.exe" exited with code -1073741515
(这个错误STATUS_DLL_NOT_FOUND
的意思是,我知道之前有人问过,但我不知道如何检查遗漏了哪些 DLL)。
Microsoft.CppCommon.targets(381):
<CL Condition="'%(ClCompile.PrecompiledHeader)' != 'Create' and
'%(ClCompile.ExcludedFromBuild)'!='true' and
'%(ClCompile.CompilerIteration)' == '' and @(ClCompile) != ''"
您知道如何检查缺少哪些 DLL 吗?
解决方案
我是新手,但我希望我能正确回答。要达到实际的错误代码,您需要将其更改为十六进制。你的是
C0000135
. 据我所知,它与文件损坏有关,所以您对 dll 丢失的看法是正确的。在较旧的视觉效果中,了解它的方式是通过命令行。
从VS2010
msbuild.exe <my.sln> /t:<mytargetproject>
命令提示符运行,<my.sln>
您的解决方案名称在哪里,并且<mytargetproject>
是您尝试构建的项目。例如msbuild.exe helloworld.sln /t:mainproj
。
这是来自stackoverflow中不同帖子的引用。
希望您可以更轻松地解决此问题。帮不上忙,因为我既不使用 VS 也不使用 Windows。祝你好运!
推荐阅读
- javascript - 如何使用 d3.js 命令填充两个 div 一个在另一个之上?
- sql - 如何解析未知字符串之间的数据
- javascript - 将 Axios 承诺返回给几个调用者
- jmeter - 如何在 taurus 报告控制台视图中添加滚动,以便显示完整的详细信息
- spring-cloud-gateway - ReactiveLoadBalancerClientFilter 中的健康检查
- r - 更快地计算与 R 中的值匹配的行
- javascript - 在小提琴图表 PlotlyJS 中突出显示一点
- javascript - 无法访问数组内 json 对象的属性
- iis-10 - Http 错误 500.19 - 内部服务器错误 - 重复文件扩展
- python - 在 numba cuda.jit 中没有 numpy 函数有效