繁体   English   中英

Visual Studio(2017或2015)从哪里枚举已安装的SDK?

[英]From where does Visual Studio (2017 or 2015) enumerate the installed SDKs?

Visual Studio不能正确显示所有已安装的Windows SDK,无法反映C:\\ Program Files(x86)\\ Windows Kits \\ 10中安装的内容。 我对这个论坛的问题直截了当-有人知道Visual Studio在哪里枚举所有已安装的SDK版本及其安装位置吗? 某个地方有道具文件或注册表项吗?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10

要么

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0

关键是InstallationFolder。

我通过阅读发现了这一点

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.WindowsSDK.props

我看到的根本问题是,尽管安装了两个Windows 10,但Visual Studio没有显示可用的Windows 10开发工具包。 我可以通过从另一台正常工作的计算机上获取wow64节点来解决此问题。 它看起来像这样:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0]
"InstallationFolder"="C:\\Program Files (x86)\\Windows Kits\\10\\"
"ProductName"="Microsoft Windows SDK for Windows 10.0.15063"
"ProductVersion"="10.0.15063"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM