According to Visual Studio 2017 version 15.9 Release Notes, Windows SDK 10.0.17763.0 has been removed since Visual Studio 2017 version 15.9.76. The preferred one is 10.0.19041.0.
The template file "templates\vs2017platforms.mpt" hard coded WindowsTargetPlatformVersion to 10.0.17763.0, and now I have to open the generated .sln file to redirect Windows SDK version everytime. I have tried changing it to 10.0 just like that in vs2019platforms.mpt, but it still produces error during compile. Removing this property would fall back to 8.1, which doesn't work either.
Is there a way to update this property automatically by reading the environment variable "WindowsSDKVersion"?