当我尝试在Visual Studio中构建内容时,Visual Studio向我显示一些警告,然后如果我忽略它并进行构建,则会发生错误。
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.
Run Code Online (Sandbox Code Playgroud)
它还会向我显示一个替代选项,我也尝试过,但不起作用。
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".
Run Code Online (Sandbox Code Playgroud)