Skip to content

Commit ff1a063

Browse files
committed
temporarily disabled C# 12 tests - https://github.com/dotnet/sdk/issues/29195
1 parent 0da40f1 commit ff1a063

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ public void NuGetConfigPermissions()
335335
};
336336

337337
string[] unsupportedLanguageVersions = { "1", "ISO-1" };
338-
string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };
338+
//C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195
339+
string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", /*"12.0", */"latest", "latestMajor", "default", "preview" };
339340

340341
string?[] topLevelStatementSupport = { null, "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };
341342

@@ -442,8 +443,9 @@ static void Main(string[] args)
442443
}
443444

444445
[Theory]
445-
[InlineData("12.0")]
446-
[InlineData("12")]
446+
//C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195
447+
//[InlineData("12.0")]
448+
//[InlineData("12")]
447449
[InlineData("11.0")]
448450
[InlineData("11")]
449451
[InlineData("10.0")]
@@ -548,7 +550,8 @@ static void Main(string[] args)
548550
};
549551

550552
string[] unsupportedLanguageVersions = { "1", "ISO-1" };
551-
string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };
553+
//C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195
554+
string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", /*"12.0", */"latest", "latestMajor", "default", "preview" };
552555

553556
string?[] supportedInFrameworkByDefault = { null, "net8.0", "netstandard2.1" };
554557
string?[] supportedInLanguageVersion = { "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };
@@ -654,7 +657,8 @@ public void NullableSupport(string name, bool buildPass, string? framework, stri
654657
new { Template = "classlib", Frameworks = new[] { null, "net8.0", "netstandard2.0", "netstandard2.1" } }
655658
};
656659
string[] unsupportedLanguageVersions = { "1", "ISO-1" };
657-
string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };
660+
//C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195
661+
string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", /*"12.0", */"latest", "latestMajor", "default", "preview" };
658662

659663
string?[] supportedInFramework = { null, "net8.0" };
660664
string?[] supportedInLangVersion = { null, "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };
@@ -757,7 +761,8 @@ public void ImplicitUsingsSupport(string name, bool buildPass, string? framework
757761
new { Template = "classlib", Frameworks = new[] { null, "net8.0", "netstandard2.0", "netstandard2.1" } }
758762
};
759763
string[] unsupportedLanguageVersions = { "1", "ISO-1" };
760-
string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };
764+
//C# 12 is not supported yet - https://github.com/dotnet/sdk/issues/29195
765+
string?[] supportedLanguageVersions = { null, "ISO-2", "2", "3", "4", "5", "6", "7", "7.1", "7.2", "7.3", "8.0", "9.0", "10.0", "11.0", /*"12.0", */"latest", "latestMajor", "default", "preview" };
761766

762767
string?[] supportedFrameworks = { null, "net8.0" };
763768
string?[] fileScopedNamespacesSupportedLanguages = { "10.0", "11.0", "12.0", "latest", "latestMajor", "default", "preview" };

0 commit comments

Comments
 (0)