【发布时间】:2019-06-23 16:21:11
【问题描述】:
这是我尝试使用msbuild.exe 的GitHub 页面,只是它抛出了以下错误:
1>------ Build started: Project: keycastow, Configuration: Debug|Win32 ------
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(379,5): error MSB8020: The build tools for Visual Studio 2013 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install Visual Studio 2013 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
是否有 2 个可能的选项可以让 this on GitHub 工作?
注意:我更喜欢选项一。
- 将当前代码更新为 2019 标准(这对初学者来说会不会很困难)?
- 让当前的 v120 构建工具工作。
- 我是否缺少它的工作依赖项?我当前的安装View
- 我已经检查了这个thread here 并下载了Microsoft Build Tools 2013 并安装了,但我遇到了同样的问题。看到我用的是2019,觉得还是开个新贴吧。
其他信息
这是我目前在 Visual Studio 2019 中安装的屏幕截图。 View.
当前版本没有在应用程序本身安装Microsoft Build Tools 2013 的选项,因此安装的独立版本不会作为选项显示在这里。
【问题讨论】:
-
请注意,“v120”不是“Microsoft Build Tools 2013”,而是 Visual C++ tooling 2013。如果需要,您需要安装 Visual Studio 2013 的该部分。当然,你接受了升级到 VS2019 的答案。
-
感谢您的信息。是的,更改 1 班轮对我的下载速度来说更容易。快得多。我想知道为什么它给了我错误的调试?
标签: visual-studio msbuild