将Visual Studio 2019降级到Visual Studio 2017

问题描述 投票:0回答:1

关于在StackOverflow上将解决方案从Visual Studio 2017升级到Visual Studio 2019的很多答案。但是如何降级回Visual Studio 2017?当我尝试在Visual Studio 2017中构建项目时,出现以下错误:

Error MSB8020.  
The build tools for v142 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install v142 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".

[在此之前,我将Visual Studio 2019与该解决方案配合使用,并且运行良好。但是现在我必须改用Visual Studio 2017,并且按预期出现错误。有没有可以解决的方法,而不是手动重新创建解决方案?谢谢你的建议!

visual-studio-2017 compatibility visual-studio-2019 migrating
1个回答
0
投票

此问题与您的MSBuilder有关,有时在Visual Studion中重新检查MSBulder的版本,可能仍支持vs2019。

您可以在您的项目中更改此设置到:项目->属性->常规->平台工具集,然后更改为VS的当前版本。

认为这会有所帮助。!

© www.soinside.com 2019 - 2024. All rights reserved.