Use detected .NET and C# language version in generated project files
This commit is contained in:
@@ -161,6 +161,18 @@ namespace Flax.Build
|
||||
/// </summary>
|
||||
public readonly string RuntimeVersionName;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum supported C#-language version for the SDK.
|
||||
/// </summary>
|
||||
public string CSharpLanguageVersion => Version.Major switch
|
||||
{
|
||||
8 => "12.0",
|
||||
7 => "11.0",
|
||||
6 => "10.0",
|
||||
5 => "9.0",
|
||||
_ => "7.3",
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DotNetSdk"/> class.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user