Skip to content

Commit 144086d

Browse files
added back the ability to set the uwp sdk version in cmd line args
1 parent f0103d1 commit 144086d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/UwpAppxBuildTools.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private static void UpdateDependenciesElement(XElement dependencies, XNamespace
257257
EditorUserBuildSettings.wsaUWPSDK = windowsSdkPaths[windowsSdkPaths.Length - 1];
258258
}
259259

260-
string maxVersionTested = UwpBuildDeployPreferences.MIN_SDK_VERSION;
260+
string maxVersionTested = EditorUserBuildSettings.wsaUWPSDK;
261261

262262
if (string.IsNullOrWhiteSpace(EditorUserBuildSettings.wsaMinUWPSDK))
263263
{

Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/UwpPlayerBuildTools.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ private static void ParseBuildCommandLine(ref UwpBuildInfo buildInfo)
3434
case "-rebuildAppx":
3535
buildInfo.RebuildAppx = true;
3636
break;
37+
case "-targetUwpSdk":
38+
// Note: the min sdk target cannot be changed.
39+
EditorUserBuildSettings.wsaUWPSDK = arguments[++i];
40+
break;
3741
}
3842
}
3943
}

0 commit comments

Comments
 (0)