The task failed to use SdkToolsPath 'x64' or the registry key 'under SdkToolsPath' exists in the appropriate processor-specific location and the Microsoft Windows SDK is installed.

When running a new project that I plan to change given by others, the following error pops up. Let me
Error content
tell you the reason first, because the project given by others is for C#, but my VS did not check the C# environment during installation, which means that at this time my VS cannot run C# code. This error pops up because it lacks the necessary SDK to run C#.
Once you know the principle, the solution is simple. Open the Visual Studio Installer, and then add the environment you need. You may not need C#. It just depends on what environment your project uses.
first step
Open VS Installer
second step
Insert image description here

Another problem is that the generation tools for Visual Studio 2012 (Platform Toolset="v110") cannot be found. Version problem
This is because of a version problem. Just reset the project, or there will be a pop-up window when opening the project. It probably means that the code was written by an old version of VS and asks you if you want to upgrade. Just select true.

Guess you like

Origin blog.csdn.net/weixin_51315141/article/details/133294465