From 401cdb46efa7232bd60be24df9124df520dd530b Mon Sep 17 00:00:00 2001
From: Jeff Genovy <29107334+jefgen@users.noreply.github.com>
Date: Wed, 24 Oct 2018 19:28:43 -0700
Subject: [PATCH] ICU-20238 Autodetect Visual Studio version, and autodetect
the installed Windows 10 SDK version.
---
.../Build.Windows.PlatformToolset.props | 21 ++++++++++++++++
.../Build.Windows.ProjectConfiguration.props | 8 ++-----
...ild.Windows.UWP.ProjectConfiguration.props | 24 ++++++++++++-------
3 files changed, 38 insertions(+), 15 deletions(-)
create mode 100644 icu4c/source/allinone/Build.Windows.PlatformToolset.props
diff --git a/icu4c/source/allinone/Build.Windows.PlatformToolset.props b/icu4c/source/allinone/Build.Windows.PlatformToolset.props
new file mode 100644
index 00000000000..778ee2676d0
--- /dev/null
+++ b/icu4c/source/allinone/Build.Windows.PlatformToolset.props
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+ $(VisualStudioVersion)
+ $(MSBuildToolsVersion)
+
+ v140
+ v141
+
+
+ $(AutoDetectedPlatformToolset)
+
+
+ $(DefaultPlatformToolset)
+
+
diff --git a/icu4c/source/allinone/Build.Windows.ProjectConfiguration.props b/icu4c/source/allinone/Build.Windows.ProjectConfiguration.props
index 0e74cb4ff45..3557e9c7354 100644
--- a/icu4c/source/allinone/Build.Windows.ProjectConfiguration.props
+++ b/icu4c/source/allinone/Build.Windows.ProjectConfiguration.props
@@ -21,12 +21,8 @@
x64
-
-
-
-
- v141
-
+
+
-
- 10.0.16299.0
-
- 10.0.10240.0
-
14.0
true
Windows Store
10.0
-
-
-
- v141
+
+
+
+ $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)
+ $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)
+ $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)
+ $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)
+
+ $(WindowsTargetPlatformVersion_10).0
+
+ $(WindowsTargetPlatformVersion_10)
+
+ 10.0.10240.0
+
+