diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 46521cfde585..52f51d571132 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -64,34 +64,34 @@ 818980d40cad0f434e4bb65678d90dac30f5a439 - + https://github.com/dotnet/roslyn - a9c49e8b8633005d2d03516693950037a9cf7cc7 + 50b404de631906144f43261fa1abeae8f40b75ef - + https://github.com/dotnet/roslyn - a9c49e8b8633005d2d03516693950037a9cf7cc7 + 50b404de631906144f43261fa1abeae8f40b75ef - + https://github.com/dotnet/roslyn - a9c49e8b8633005d2d03516693950037a9cf7cc7 + 50b404de631906144f43261fa1abeae8f40b75ef - + https://github.com/dotnet/roslyn - a9c49e8b8633005d2d03516693950037a9cf7cc7 + 50b404de631906144f43261fa1abeae8f40b75ef - + https://github.com/dotnet/roslyn - a9c49e8b8633005d2d03516693950037a9cf7cc7 + 50b404de631906144f43261fa1abeae8f40b75ef - + https://github.com/dotnet/roslyn - a9c49e8b8633005d2d03516693950037a9cf7cc7 + 50b404de631906144f43261fa1abeae8f40b75ef - + https://github.com/dotnet/roslyn - a9c49e8b8633005d2d03516693950037a9cf7cc7 + 50b404de631906144f43261fa1abeae8f40b75ef https://github.com/dotnet/aspnetcore diff --git a/eng/Versions.props b/eng/Versions.props index 16a1de8c1714..c340dc7a86c5 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -140,13 +140,13 @@ - 4.4.0-3.22511.14 - 4.4.0-3.22511.14 - 4.4.0-3.22511.14 - 4.4.0-3.22511.14 - 4.4.0-3.22511.14 - 4.4.0-3.22511.14 - 4.4.0-3.22511.14 + 4.5.0-1.22519.12 + 4.5.0-1.22519.12 + 4.5.0-1.22519.12 + 4.5.0-1.22519.12 + 4.5.0-1.22519.12 + 4.5.0-1.22519.12 + 4.5.0-1.22519.12 $(MicrosoftNetCompilersToolsetPackageVersion) diff --git a/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.NoMatchHandling.cs b/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.NoMatchHandling.cs index b01a6c7a3718..51ec891c2c85 100644 --- a/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.NoMatchHandling.cs +++ b/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.NoMatchHandling.cs @@ -134,7 +134,9 @@ public static IEnumerable GetInvalidParametersTestData() } [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(GetInvalidParametersTestData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. // invalid params: // [0] name / value - Kind // [1] canonical diff --git a/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.Subcommand.cs b/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.Subcommand.cs index 563e75ebb11a..d9461987b04e 100644 --- a/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.Subcommand.cs +++ b/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.Subcommand.cs @@ -32,7 +32,9 @@ public void Create_CanParseTemplateWithOptions() } [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanEvaluateTemplateToRunData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void Create_CanEvaluateTemplateToRun(string command, string templateSet, string? defaultLanguage, string? expectedIdentitiesStr) { TemplateGroup templateGroup = TemplateGroup.FromTemplateList( @@ -124,7 +126,9 @@ internal void Create_CanValidateOptionUsage_InNewCommand(string command, string? } [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanParseTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void Create_CanParseTemplateOptions(string command, string parameterName, string parameterType, string? defaultValue, string? defaultIfNoOptionValue, string? expectedValue) { //unique case for dotnet new create @@ -165,7 +169,9 @@ internal void Create_CanParseTemplateOptions(string command, string parameterNam } [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanParseChoiceTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void Create_CanParseChoiceTemplateOptions(string command, string parameterName, string parameterValues, string? defaultIfNoOptionValue, string? expectedValue) { MockTemplateInfo template = new MockTemplateInfo("foo", identity: "foo.1", groupIdentity: "foo.group") @@ -200,7 +206,9 @@ internal void Create_CanParseChoiceTemplateOptions(string command, string parame } [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanDetectParseErrorsTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void Create_CanDetectParseErrorsTemplateOptions( string command, string parameterName, @@ -234,7 +242,9 @@ internal void Create_CanDetectParseErrorsTemplateOptions( } [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanDetectParseErrorsChoiceTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void Create_CanDetectParseErrorsChoiceTemplateOptions( string command, string parameterName, diff --git a/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.cs b/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.cs index 0ecd7eb705b0..a870832c723c 100644 --- a/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.cs +++ b/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/InstantiateTests.cs @@ -207,7 +207,9 @@ public void Instantiate_CanParseTemplateWithOptions() }; [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanEvaluateTemplateToRunData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void CanEvaluateTemplateToRun(string command, string templateSet, string? defaultLanguage, string? expectedIdentitiesStr) { TemplateGroup templateGroup = TemplateGroup.FromTemplateList( @@ -304,7 +306,9 @@ internal void CanParseNameOption(string command, string? expectedValue) }; [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanParseTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void CanParseTemplateOptions(string command, string parameterName, string parameterType, string? defaultValue, string? defaultIfNoOptionValue, string? expectedValue) { MockTemplateInfo template = new MockTemplateInfo("foo", identity: "foo.1", groupIdentity: "foo.group") @@ -348,7 +352,9 @@ internal void CanParseTemplateOptions(string command, string parameterName, stri }; [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanParseChoiceTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void CanParseChoiceTemplateOptions(string command, string parameterName, string parameterValues, string? defaultIfNoOptionValue, string? expectedValue) { MockTemplateInfo template = new MockTemplateInfo("foo", identity: "foo.1", groupIdentity: "foo.group") @@ -392,7 +398,9 @@ internal void CanParseChoiceTemplateOptions(string command, string parameterName }; [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanParseMultiChoiceTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void CanParseMultiChoiceTemplateOptions(string command, string parameterName, string parameterValues, string? defaultIfNoOptionValue, string? expectedValue) { MockTemplateInfo template = new MockTemplateInfo("foo", identity: "foo.1", groupIdentity: "foo.group") @@ -455,7 +463,9 @@ internal void CanParseMultiChoiceTemplateOptions(string command, string paramete }; [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanDetectParseErrorsTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void CanDetectParseErrorsTemplateOptions( string command, string parameterName, @@ -498,7 +508,9 @@ internal void CanDetectParseErrorsTemplateOptions( }; [Theory] +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(CanDetectParseErrorsChoiceTemplateOptionsData))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. internal void CanDetectParseErrorsChoiceTemplateOptions( string command, string parameterName, diff --git a/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs b/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs index 55b5a6c717f2..5bb00f1635e5 100644 --- a/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs +++ b/src/Tests/dotnet-new.Tests/CommonTemplatesTests.cs @@ -326,7 +326,9 @@ public void GlobalJsonTests(string expectedContent, params string[] parameters) [Theory] //creates all possible combinations for supported templates, language versions and frameworks +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(TopLevelProgramSupport_Data))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. public void TopLevelProgramSupport(string name, bool buildPass, string? framework, string? langVersion, bool supportsFeature) { string workingDir = CreateTemporaryFolder(folderName: $"{name}-{langVersion ?? "null"}-{framework ?? "null"}"); @@ -538,7 +540,9 @@ static void Main(string[] args) [Theory] //creates all possible combinations for supported templates, language versions and frameworks +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(NullableSupport_Data))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. public void NullableSupport(string name, bool buildPass, string? framework, string? langVersion, bool supportsFeature) { string workingDir = CreateTemporaryFolder(folderName: $"{name}-{langVersion ?? "null"}-{framework ?? "null"}"); @@ -640,7 +644,9 @@ public void NullableSupport(string name, bool buildPass, string? framework, stri [Theory] //creates all possible combinations for supported templates, language versions and frameworks +#pragma warning disable CA1825 // Avoid zero-length array allocations. https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(ImplicitUsingsSupport_Data))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. public void ImplicitUsingsSupport(string name, bool buildPass, string? framework, string? langVersion, bool supportsFeature) { string workingDir = CreateTemporaryFolder(folderName: $"{name}-{langVersion ?? "null"}-{framework ?? "null"}"); @@ -727,7 +733,9 @@ public void ImplicitUsingsSupport(string name, bool buildPass, string? framework [Theory] //creates all possible combinations for supported templates, language versions and frameworks +#pragma warning disable CA1825 // Avoid zero-length array allocations.https://github.com/dotnet/sdk/issues/28672 [MemberData(nameof(FileScopedNamespacesSupport_Data))] +#pragma warning restore CA1825 // Avoid zero-length array allocations. public void FileScopedNamespacesSupport(string name, bool pass, string? framework, string? langVersion, bool supportsFeature) { string workingDir = CreateTemporaryFolder(folderName: $"{name}-{langVersion ?? "null"}-{framework ?? "null"}");