"Retarget Solution"在视觉工作室 2022 中在哪里



我使用Visual studio构建一个USB SDK,我得到了这个消息:

Error   MSB8020 The build tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found. To build using the WindowsKernelModeDriver10.0 build tools, please install WindowsKernelModeDriver10.0 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".   usbsamp (SysDriverusbsamp)    C:Program FilesMicrosoft Visual Studio2022CommunityMSBuildMicrosoftVCv170Microsoft.CppBuild.targets

我试着遵循这一点,使用"重新定位解决方案",但我在项目菜单中找不到它,它是早期的visual studio吗?我如何在Visual Studio 2022中修复它?

Visual Studio使用不同的方法设置此,之后我使用Project->property->general->Platform toolset更改为Visual Studio 2022,错误被修复。

最新更新