在StackOverflow上,有很多关于将解决方案从Visual Studio2017升级到Visual Studio2019的答案。但是我如何降级回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,不出所料,我遇到了错误。有没有办法修复它,而不是手动重新创建解决方案?谢谢你的建议!
发布于 2019-11-19 14:06:37
这个问题与你的MSBuilder有关,请在Visual Studion中重新检查MSBulder的版本,有时它可能仍然支持vs2019。
或
您可以在您的项目中将其更改为:项目->属性->常规->平台Tool_set,并更改为您的VS的当前版本。
我认为这会有帮助。!
https://stackoverflow.com/questions/58927551
复制相似问题