【VS】MSB803 找不到Windows SDK版本 10.0.18362.0.请安装所需版本的 Windows SDK,或者在项目属性页中或通过右键单击解决
- 找到UAP.props文件,路径在:
SDK根目录\DesignTime\CommonConfiguration\Neutral\UAP\10.0.19041.0\
如
D:\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.19041.0
打开UAP.props文件,找到第5行:
<Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″>
<PropertyGroup>
<!– Force WindowsSdkDir to always be a parent to this props file –>
<WindowsSdkDir>$([MSBUILD]::GetDirectoryNameOfFileAbove(‘$(MSBUILDTHISFILEDIRECTORY)’, ‘sdkmanifest.xml’))\</WindowsSdkDir>
将对应行修改为:
<WindowsSdkDir Condition="'$(WindowsSdkDir)' == ''">$([MSBUILD]::GetDirectoryNameOfFileAbove('$(MSBUILDTHISFILEDIRECTORY)', 'sdkmanifest.xml'))\</WindowsSdkDir>

浙公网安备 33010602011771号