You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Assets/HoloToolkit/BuildAndDeploy/Editor/BuildDeployWindow.cs
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,12 @@ public class BuildDeployWindow : EditorWindow
25
25
privateconstfloatGUISectionOffset=10.0f;
26
26
privateconststringGUIHorizontalSpacer=" ";
27
27
privateconstfloatUpdateBuildsPeriod=1.0f;
28
+
privateconststringSdkVersion=
29
+
#if UNITY_2017_2_OR_NEWER
30
+
"10.0.16299.0";
31
+
#else
32
+
"10.0.15063.0";
33
+
#endif
28
34
29
35
privateenumBuildPlatformEnum
30
36
{
@@ -310,7 +316,7 @@ private void OnGUI()
310
316
}
311
317
else
312
318
{
313
-
if(windowsSdkPaths[i].Equals("10.0.16299.0"))
319
+
if(windowsSdkPaths[i].Equals(SdkVersion))
314
320
{
315
321
currentSDKVersionIndex=i;
316
322
}
@@ -319,10 +325,10 @@ private void OnGUI()
319
325
320
326
if(currentSDKVersionIndex==0)
321
327
{
322
-
Debug.LogError("Unable to find the required Windows 10 SDK Target!\nPlease be sure to install the 10.0.16299.0 SDK from Visual Studio Installer.");
328
+
Debug.LogErrorFormat("Unable to find the required Windows 10 SDK Target!\nPlease be sure to install the {0} SDK from Visual Studio Installer.",SdkVersion);
0 commit comments