|
74 | 74 | possible version). Since we limit WINVER to Windows 7 anyway, it doesn't really |
75 | 75 | matter which WinSDK version we use. |
76 | 76 | --> |
77 | | - <_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion> |
78 | | - <_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\WOW6432Node\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion> |
79 | | - <DefaultWindowsSDKVersion>10.0.15063.0</DefaultWindowsSDKVersion> |
80 | | - <DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.14393'">10.0.14393.0</DefaultWindowsSDKVersion> |
81 | | - <DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.10586'">10.0.10586.0</DefaultWindowsSDKVersion> |
82 | | - <DefaultWindowsSDKVersion Condition="$(_RegistryVersion) == '10.0.10240'">10.0.10240.0</DefaultWindowsSDKVersion> |
| 77 | + <_KitsRoot>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)</_KitsRoot> |
| 78 | + <_KitsRoot Condition="$(_KitsRoot) == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)</_KitsRoot> |
| 79 | + |
| 80 | + <!-- The minimum allowed SDK version to use for building --> |
| 81 | + <DefaultWindowsSDKVersion>10.0.10586.0</DefaultWindowsSDKVersion> |
| 82 | + <DefaultWindowsSDKVersion Condition="Exists('$(_KitsRoot)\Platforms\UAP\10.0.14393.0')">10.0.14393.0</DefaultWindowsSDKVersion> |
| 83 | + <DefaultWindowsSDKVersion Condition="Exists('$(_KitsRoot)\Platforms\UAP\10.0.15063.0')">10.0.15063.0</DefaultWindowsSDKVersion> |
| 84 | + </PropertyGroup> |
| 85 | + |
| 86 | + <PropertyGroup Condition="$(WindowsTargetPlatformVersion) == ''"> |
| 87 | + <WindowsTargetPlatformVersion>$(DefaultWindowsSDKVersion)</WindowsTargetPlatformVersion> |
83 | 88 | </PropertyGroup> |
84 | 89 |
|
85 | 90 | <PropertyGroup Condition="'$(OverrideVersion)' == ''"> |
|
187 | 192 | <Message Importance="high" Text="Field3Value: $(Field3Value)" /> |
188 | 193 | <Message Importance="high" Text="SysWinVer: $(SysWinVer)" /> |
189 | 194 | <Message Importance="high" Text="PyDllName: $(PyDllName)" /> |
| 195 | + <Message Importance="high" Text="WindowsSdkVersion: $(TargetPlatformVersion)" /> |
190 | 196 | </Target> |
191 | 197 | </Project> |
0 commit comments