Add support for .NET 9 SDK and runtime

This commit is contained in:
2024-11-14 23:05:25 +02:00
parent a1b3610af8
commit dd894b510d
5 changed files with 18 additions and 7 deletions

View File

@@ -135,7 +135,7 @@ namespace Flax.Build
/// <summary>
/// The maximum SDK version.
/// </summary>
public static Version MaximumVersion => new Version(8, 0);
public static Version MaximumVersion => new Version(9, 0);
/// <inheritdoc />
public override TargetPlatform[] Platforms
@@ -166,10 +166,11 @@ namespace Flax.Build
/// </summary>
public string CSharpLanguageVersion => Version.Major switch
{
8 => "12.0",
7 => "11.0",
6 => "10.0",
5 => "9.0",
_ when Version.Major >= 9 => "13.0",
_ when Version.Major >= 8 => "12.0",
_ when Version.Major >= 7 => "11.0",
_ when Version.Major >= 6 => "10.0",
_ when Version.Major >= 5 => "9.0",
_ => "7.3",
};