Ste*_*Ste 5 msbuild visual-studio
这是我尝试使用的GitHub页面,msbuild.exe但它抛出以下错误:
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 ==========
Run Code Online (Sandbox Code Playgroud)
是否有 2 个可能的选项可以在 GitHub上使用它?
注意:我更喜欢第一个选项。
附加信息
这是我目前在 Visual Studio 2019 中安装的屏幕截图。 查看。
当前版本中没有在应用程序本身中安装Microsoft Build Tools 2013 的选项,因此安装的独立版本不会作为选项出现在此处。
打开keycastow.vcxproj用记事本在这里,变化<PlatformToolset>v120</PlatformToolset>到<PlatformToolset>v142</PlatformToolset>使用VC ++ 2019平台或通过用户界面更改版本
在 Visual Studio 的解决方案资源管理器中,打开项目(不是解决方案)的快捷菜单,然后选择“属性”以打开项目“属性页”对话框。
在“属性页”对话框中,打开“配置”下拉列表,然后选择“所有配置”。
在对话框的左窗格中,展开配置属性,然后选择常规。
在右侧窗格中,选择 Platform Toolset,然后从下拉列表中选择所需的工具集(在您的情况下为 2019 - v142)
选择确定按钮。
现在您无需安装任何东西即可编译项目。
| 归档时间: |
|
| 查看次数: |
12860 次 |
| 最近记录: |