Skip to content

Commit 6e6d4ef

Browse files
authored
Define Build Tool C# version based on Unity version (#10572)
1 parent ac96a3e commit 6e6d4ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Assets/MRTK/Tools/MSBuild/Scripts/MSBuildTools.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ public static class MSBuildTools
2525
BuildTarget.WSAPlayer
2626
};
2727

28-
public const string CSharpVersion = "7.3";
28+
public const string CSharpVersion =
29+
#if UNITY_2020_2_OR_NEWER
30+
"8.0";
31+
#else
32+
"7.3";
33+
#endif
34+
2935
public readonly static Version DefaultMinUWPSDK = new Version("10.0.14393.0");
3036

3137
private static readonly string uwpMinPlatformVersion = EditorUserBuildSettings.wsaMinUWPSDK;

0 commit comments

Comments
 (0)