Update before.targets
Try to auto-detect latest Win 10 SDK
</PropertyGroup>
<PropertyGroup Label="Globals">
<PlatformToolset>v141</PlatformToolset>
- <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
+ <!-- Customers may override WindowsTargetPlatformVersion before auto-detection of latest Win 10 SDK -->
+ <LatestTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</LatestTargetPlatformVersion>
+ <WindowsTargetPlatformVersion Condition="'$(WindowsTargetPlatformVersion)' == ''">$(LatestTargetPlatformVersion)</WindowsTargetPlatformVersion>
+ <TargetPlatformVersion>$(WindowsTargetPlatformVersion)</TargetPlatformVersion>
</PropertyGroup>
</Project>
