diff --git a/.editorconfig b/.editorconfig index 7d62b58f..40cdffa5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -79,7 +79,9 @@ dotnet_diagnostic.CA1845.severity = none # CA1845: Use span-based 'string dotnet_diagnostic.CA1846.severity = none # CA1846: Prefer 'AsSpan' over 'Substring' dotnet_diagnostic.CA1847.severity = none # CA1847: Use char literal for a single character lookup dotnet_diagnostic.CA1852.severity = suggestion # CA1852: Seal internal types +dotnet_diagnostic.CA1854.severity = suggestion # CA1854: Prefer the 'IDictionary.TryGetValue(TKey, out TValue)' method dotnet_diagnostic.CA1859.severity = suggestion # CA1859: Use concrete types when possible for improved performance +dotnet_diagnostic.CA1861.severity = suggestion # CA1861: Avoid constant arrays as arguments dotnet_diagnostic.CA2101.severity = suggestion # CA2101: Specify marshaling for P/Invoke string arguments dotnet_diagnostic.CA2201.severity = none # CA2201: Do not raise reserved exception types dotnet_diagnostic.CA2208.severity = suggestion # CA2208: Instantiate argument exceptions correctly diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 808c3ee1..09c0377e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,8 +34,8 @@ jobs: with: name: packages path: Package/Release/Packages - - name: Test (net452) - run: ./make.ps1 -frameworks net452 test-all + - name: Test (net462) + run: ./make.ps1 -frameworks net462 test-all shell: pwsh - name: Test (netcoreapp2.1) run: ./make.ps1 -frameworks netcoreapp2.1 test-all diff --git a/Build.proj b/Build.proj index 6a5e08b6..a265d1e7 100644 --- a/Build.proj +++ b/Build.proj @@ -108,7 +108,7 @@ Outputs="$(PackageDir)\DynamicLanguageRuntime.$(PackageVersion).zip"> + Exclude="$(StageDir)\netcoreapp2.1\*;$(StageDir)\net462\*;$(StageDir)\net7.0\*;$(StageDir)\net8.0\*" /> diff --git a/Package/nuget/DynamicLanguageRuntime.nuspec b/Package/nuget/DynamicLanguageRuntime.nuspec index dc0fedbf..0f84a4c8 100644 --- a/Package/nuget/DynamicLanguageRuntime.nuspec +++ b/Package/nuget/DynamicLanguageRuntime.nuspec @@ -33,9 +33,9 @@ - - - + + + diff --git a/Tests/Metadata/Metadata.csproj b/Tests/Metadata/Metadata.csproj index 2291ace4..8bb75909 100644 --- a/Tests/Metadata/Metadata.csproj +++ b/Tests/Metadata/Metadata.csproj @@ -1,7 +1,7 @@  - net452;netcoreapp2.1;netcoreapp3.1;net6.0 + net462;netcoreapp2.1;netcoreapp3.1;net6.0 false Exe @@ -16,12 +16,14 @@ + + - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + + + + + diff --git a/Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj b/Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj index 16c12eee..29ab5b43 100644 --- a/Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj +++ b/Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj @@ -1,18 +1,20 @@  - net452;netcoreapp2.1;netcoreapp3.1;net6.0 + net462;netcoreapp2.1;netcoreapp3.1;net6.0 false + + - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + + + + + diff --git a/Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj b/Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj index eecd6254..cc21f246 100644 --- a/Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj +++ b/Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj @@ -1,18 +1,20 @@  - net452;netcoreapp2.1;netcoreapp3.1;net6.0 + net462;netcoreapp2.1;netcoreapp3.1;net6.0 false + + - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + + + + + diff --git a/make.ps1 b/make.ps1 index f7c736c2..e0daba54 100755 --- a/make.ps1 +++ b/make.ps1 @@ -4,7 +4,7 @@ Param( [Parameter(Position=1)] [String] $target = "release", [String] $configuration = "Release", - [String[]] $frameworks=@('net452','netcoreapp2.1','netcoreapp3.1','net6.0'), + [String[]] $frameworks=@('net462','netcoreapp2.1','netcoreapp3.1','net6.0'), [String] $platform = "x64", [switch] $runIgnored )