From cbecc37c79e76335a04490da30d4f6078d9eb18e Mon Sep 17 00:00:00 2001 From: NivalXer Date: Fri, 18 Nov 2022 18:14:38 +0800 Subject: [PATCH] Add .NET7 target (#292) * all tests add target net7 * add .NET7 target * bump LightInject version * bump Benchmark version Co-authored-by: Liu Haoyang --- .../AspectCore.Core.Benchmark.csproj | 4 ++-- ...Core.Extensions.Reflection.Benchmark.csproj | 4 ++-- ...AspectCore.Extensions.Autofac.Sample.csproj | 2 +- ...ns.DependencyInjection.ConsoleSample.csproj | 2 +- .../AspectCore.Abstractions.csproj | 2 +- src/AspectCore.Core/AspectCore.Core.csproj | 2 +- .../AspectCore.Extensions.AspNetCore.csproj | 2 +- .../AspectCore.Extensions.AspectScope.csproj | 2 +- .../AspectCore.Extensions.Autofac.csproj | 4 ++-- .../AspectCore.Extensions.Configuration.csproj | 7 ++++++- ...spectCore.Extensions.DataAnnotations.csproj | 2 +- ...AspectCore.Extensions.DataValidation.csproj | 2 +- ...tCore.Extensions.DependencyInjection.csproj | 6 +++++- .../AspectCore.Extensions.Hosting.csproj | 6 +++++- .../AspectCore.Extensions.LightInject.csproj | 4 ++-- .../AspectCore.Extensions.Reflection.csproj | 2 +- .../AspectCore.Extensions.Autofac.Test.csproj | 13 +++++++++---- ...tCore.Extensions.Configuration.Tests.csproj | 9 +++++++-- ....Extensions.DependencyInjection.Test.csproj | 10 +++++++--- .../AspectCore.Extensions.Hosting.Tests.csproj | 4 ++-- ...pectCore.Extensions.LightInject.Test.csproj | 4 ++-- ...spectCore.Extensions.Reflection.Test.csproj | 13 ++++++++----- .../AspectCore.Extensions.Windsor.Test.csproj | 17 ++++++++++++++--- tests/AspectCore.Tests/AspectCore.Tests.csproj | 18 +++++++++++++++--- 24 files changed, 97 insertions(+), 44 deletions(-) diff --git a/benchmark/AspectCore.Core.Benchmark/AspectCore.Core.Benchmark.csproj b/benchmark/AspectCore.Core.Benchmark/AspectCore.Core.Benchmark.csproj index 3c475b1e..06f6e697 100644 --- a/benchmark/AspectCore.Core.Benchmark/AspectCore.Core.Benchmark.csproj +++ b/benchmark/AspectCore.Core.Benchmark/AspectCore.Core.Benchmark.csproj @@ -2,7 +2,7 @@ Exe - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 true true snupkg @@ -19,7 +19,7 @@ - + diff --git a/benchmark/AspectCore.Extensions.Reflection.Benchmark/AspectCore.Extensions.Reflection.Benchmark.csproj b/benchmark/AspectCore.Extensions.Reflection.Benchmark/AspectCore.Extensions.Reflection.Benchmark.csproj index 3afd5340..dc3b2e42 100644 --- a/benchmark/AspectCore.Extensions.Reflection.Benchmark/AspectCore.Extensions.Reflection.Benchmark.csproj +++ b/benchmark/AspectCore.Extensions.Reflection.Benchmark/AspectCore.Extensions.Reflection.Benchmark.csproj @@ -2,7 +2,7 @@ Exe - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 true true snupkg @@ -13,7 +13,7 @@ - + diff --git a/sample/AspectCore.Extensions.Autofac.Sample/AspectCore.Extensions.Autofac.Sample.csproj b/sample/AspectCore.Extensions.Autofac.Sample/AspectCore.Extensions.Autofac.Sample.csproj index b985d109..3ff32d92 100644 --- a/sample/AspectCore.Extensions.Autofac.Sample/AspectCore.Extensions.Autofac.Sample.csproj +++ b/sample/AspectCore.Extensions.Autofac.Sample/AspectCore.Extensions.Autofac.Sample.csproj @@ -2,7 +2,7 @@ Exe - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 true true snupkg diff --git a/sample/AspectCore.Extensions.DependencyInjection.ConsoleSample/AspectCore.Extensions.DependencyInjection.ConsoleSample.csproj b/sample/AspectCore.Extensions.DependencyInjection.ConsoleSample/AspectCore.Extensions.DependencyInjection.ConsoleSample.csproj index e969f02d..a19f6be5 100644 --- a/sample/AspectCore.Extensions.DependencyInjection.ConsoleSample/AspectCore.Extensions.DependencyInjection.ConsoleSample.csproj +++ b/sample/AspectCore.Extensions.DependencyInjection.ConsoleSample/AspectCore.Extensions.DependencyInjection.ConsoleSample.csproj @@ -1,7 +1,7 @@  Exe - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 true true snupkg diff --git a/src/AspectCore.Abstractions/AspectCore.Abstractions.csproj b/src/AspectCore.Abstractions/AspectCore.Abstractions.csproj index 9fa6d5a4..bfd215b6 100644 --- a/src/AspectCore.Abstractions/AspectCore.Abstractions.csproj +++ b/src/AspectCore.Abstractions/AspectCore.Abstractions.csproj @@ -9,7 +9,7 @@ AspectCore.Abstractions DynamicProxy;Aop;Aspect;AspectCore;Interceptor The abstract design of the AspectCore framework. - net6.0;net5.0;netstandard2.1;netstandard2.0;net461 + net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0;net461 true true snupkg diff --git a/src/AspectCore.Core/AspectCore.Core.csproj b/src/AspectCore.Core/AspectCore.Core.csproj index 6d068b6f..aa047b41 100644 --- a/src/AspectCore.Core/AspectCore.Core.csproj +++ b/src/AspectCore.Core/AspectCore.Core.csproj @@ -8,7 +8,7 @@ AspectCore.Core DynamicProxy;Aop;Aspect;AspectCore;Interceptor The implementation of the AspectCore framework. - net6.0;net5.0;netstandard2.1;netstandard2.0;net461 + net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0;net461 true true snupkg diff --git a/src/AspectCore.Extensions.AspNetCore/AspectCore.Extensions.AspNetCore.csproj b/src/AspectCore.Extensions.AspNetCore/AspectCore.Extensions.AspNetCore.csproj index 144ce107..21cd36c5 100644 --- a/src/AspectCore.Extensions.AspNetCore/AspectCore.Extensions.AspNetCore.csproj +++ b/src/AspectCore.Extensions.AspNetCore/AspectCore.Extensions.AspNetCore.csproj @@ -3,7 +3,7 @@ - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 true true snupkg diff --git a/src/AspectCore.Extensions.AspectScope/AspectCore.Extensions.AspectScope.csproj b/src/AspectCore.Extensions.AspectScope/AspectCore.Extensions.AspectScope.csproj index f4718f5a..a4076903 100644 --- a/src/AspectCore.Extensions.AspectScope/AspectCore.Extensions.AspectScope.csproj +++ b/src/AspectCore.Extensions.AspectScope/AspectCore.Extensions.AspectScope.csproj @@ -10,7 +10,7 @@ AspectCore.Extensions.AspectScope DynamicProxy;Aop;Aspect;AspectCore;Intercepter ScopedContext extension system for AspectCore Framework. - net6.0;net5.0;netstandard2.1;netstandard2.0;net461 + net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0;net461 true true snupkg diff --git a/src/AspectCore.Extensions.Autofac/AspectCore.Extensions.Autofac.csproj b/src/AspectCore.Extensions.Autofac/AspectCore.Extensions.Autofac.csproj index 986c40c0..51ec3780 100644 --- a/src/AspectCore.Extensions.Autofac/AspectCore.Extensions.Autofac.csproj +++ b/src/AspectCore.Extensions.Autofac/AspectCore.Extensions.Autofac.csproj @@ -9,7 +9,7 @@ AspectCore.Extensions.Autofac DynamicProxy;Aop;Autofac;AspectCore Interceptor and dynamicProxy support for Autofac via AspectCore Framework. - net6.0;net5.0;netstandard2.1;netstandard2.0 + net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0 true true snupkg @@ -21,7 +21,7 @@ - + diff --git a/src/AspectCore.Extensions.Configuration/AspectCore.Extensions.Configuration.csproj b/src/AspectCore.Extensions.Configuration/AspectCore.Extensions.Configuration.csproj index 8d885559..72b1603e 100644 --- a/src/AspectCore.Extensions.Configuration/AspectCore.Extensions.Configuration.csproj +++ b/src/AspectCore.Extensions.Configuration/AspectCore.Extensions.Configuration.csproj @@ -8,7 +8,7 @@ AspectCore.Extensions.Configuration Reflection;Aop;DynamicProxy;Configuration Configuration extension system for ASP.NET Core via AspectCore-Framework. - net6.0;net5.0;netcoreapp3.1;netstandard2.0 + net7.0;net6.0;net5.0;netcoreapp3.1;netstandard2.0 true true @@ -44,4 +44,9 @@ + + + + + \ No newline at end of file diff --git a/src/AspectCore.Extensions.DataAnnotations/AspectCore.Extensions.DataAnnotations.csproj b/src/AspectCore.Extensions.DataAnnotations/AspectCore.Extensions.DataAnnotations.csproj index f2181bb0..4e83c4be 100644 --- a/src/AspectCore.Extensions.DataAnnotations/AspectCore.Extensions.DataAnnotations.csproj +++ b/src/AspectCore.Extensions.DataAnnotations/AspectCore.Extensions.DataAnnotations.csproj @@ -9,7 +9,7 @@ AspectCore.Extensions.DataAnnotations DataValidation;DataAnnotations;AspectCore;AOP DataAnnotations extension system for AspectCore Framework. - net6.0;net5.0;netstandard2.1;netstandard2.0;net461 + net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0;net461 true true snupkg diff --git a/src/AspectCore.Extensions.DataValidation/AspectCore.Extensions.DataValidation.csproj b/src/AspectCore.Extensions.DataValidation/AspectCore.Extensions.DataValidation.csproj index ff004519..31ce0695 100644 --- a/src/AspectCore.Extensions.DataValidation/AspectCore.Extensions.DataValidation.csproj +++ b/src/AspectCore.Extensions.DataValidation/AspectCore.Extensions.DataValidation.csproj @@ -9,7 +9,7 @@ AspectCore.Extensions.DataValidation DataValidation;AspectCore;AOP DataValidation extension system for AspectCore Framework. - net6.0;net5.0;netstandard2.1;netstandard2.0;net461 + net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0;net461 true true snupkg diff --git a/src/AspectCore.Extensions.DependencyInjection/AspectCore.Extensions.DependencyInjection.csproj b/src/AspectCore.Extensions.DependencyInjection/AspectCore.Extensions.DependencyInjection.csproj index e2a363be..01b4b389 100644 --- a/src/AspectCore.Extensions.DependencyInjection/AspectCore.Extensions.DependencyInjection.csproj +++ b/src/AspectCore.Extensions.DependencyInjection/AspectCore.Extensions.DependencyInjection.csproj @@ -10,7 +10,7 @@ DynamicProxy;Aop;DependencyInjection;AspectCore Interceptor and dynamicProxy support for Microsoft.Extensions.DependencyInjection via AspectCore Framework. false - net6.0;net5.0;netcoreapp3.1;netstandard2.0 + net7.0;net6.0;net5.0;netcoreapp3.1;netstandard2.0 true true snupkg @@ -37,6 +37,10 @@ + + + + diff --git a/src/AspectCore.Extensions.Hosting/AspectCore.Extensions.Hosting.csproj b/src/AspectCore.Extensions.Hosting/AspectCore.Extensions.Hosting.csproj index f2b6fe7d..394cd72f 100644 --- a/src/AspectCore.Extensions.Hosting/AspectCore.Extensions.Hosting.csproj +++ b/src/AspectCore.Extensions.Hosting/AspectCore.Extensions.Hosting.csproj @@ -1,7 +1,7 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 true true snupkg @@ -24,6 +24,10 @@ + + + + diff --git a/src/AspectCore.Extensions.LightInject/AspectCore.Extensions.LightInject.csproj b/src/AspectCore.Extensions.LightInject/AspectCore.Extensions.LightInject.csproj index 556ed460..59c52146 100644 --- a/src/AspectCore.Extensions.LightInject/AspectCore.Extensions.LightInject.csproj +++ b/src/AspectCore.Extensions.LightInject/AspectCore.Extensions.LightInject.csproj @@ -7,7 +7,7 @@ DynamicProxy;Aop;LightInject;AspectCore Interceptor and dynamicProxy support for LightInject via AspectCore Framework. false - netstandard2.0 + net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0 true true snupkg @@ -18,7 +18,7 @@ - + diff --git a/src/AspectCore.Extensions.Reflection/AspectCore.Extensions.Reflection.csproj b/src/AspectCore.Extensions.Reflection/AspectCore.Extensions.Reflection.csproj index 07b89f3f..558acdd9 100644 --- a/src/AspectCore.Extensions.Reflection/AspectCore.Extensions.Reflection.csproj +++ b/src/AspectCore.Extensions.Reflection/AspectCore.Extensions.Reflection.csproj @@ -8,7 +8,7 @@ AspectCore.Extensions.Reflection Reflection;Aop;DynamicProxy Reflection extension system for AspectCore Framework. - net6.0;net5.0;netstandard2.1;netstandard2.0;net461 + net7.0;net6.0;net5.0;netstandard2.1;netstandard2.0;net461 true true snupkg diff --git a/tests/AspectCore.Extensions.Autofac.Test/AspectCore.Extensions.Autofac.Test.csproj b/tests/AspectCore.Extensions.Autofac.Test/AspectCore.Extensions.Autofac.Test.csproj index d1f07674..035ffe36 100644 --- a/tests/AspectCore.Extensions.Autofac.Test/AspectCore.Extensions.Autofac.Test.csproj +++ b/tests/AspectCore.Extensions.Autofac.Test/AspectCore.Extensions.Autofac.Test.csproj @@ -1,7 +1,7 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 portable AspectCore.Extensions.Autofac.Test AspectCore.Extensions.Autofac.Test @@ -17,18 +17,23 @@ - + - + + + + + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/AspectCore.Extensions.Configuration.Tests/AspectCore.Extensions.Configuration.Tests.csproj b/tests/AspectCore.Extensions.Configuration.Tests/AspectCore.Extensions.Configuration.Tests.csproj index 9988ea1b..d250d083 100644 --- a/tests/AspectCore.Extensions.Configuration.Tests/AspectCore.Extensions.Configuration.Tests.csproj +++ b/tests/AspectCore.Extensions.Configuration.Tests/AspectCore.Extensions.Configuration.Tests.csproj @@ -1,7 +1,7 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 false @@ -21,8 +21,13 @@ + + + + + - + all diff --git a/tests/AspectCore.Extensions.DependencyInjection.Test/AspectCore.Extensions.DependencyInjection.Test.csproj b/tests/AspectCore.Extensions.DependencyInjection.Test/AspectCore.Extensions.DependencyInjection.Test.csproj index dd6075ec..ea130747 100644 --- a/tests/AspectCore.Extensions.DependencyInjection.Test/AspectCore.Extensions.DependencyInjection.Test.csproj +++ b/tests/AspectCore.Extensions.DependencyInjection.Test/AspectCore.Extensions.DependencyInjection.Test.csproj @@ -1,7 +1,7 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 portable AspectCore.Extensions.DependencyInjection.Test AspectCore.Extensions.DependencyInjection.Test @@ -15,7 +15,7 @@ - + @@ -23,8 +23,12 @@ + + + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/AspectCore.Extensions.Hosting.Tests/AspectCore.Extensions.Hosting.Tests.csproj b/tests/AspectCore.Extensions.Hosting.Tests/AspectCore.Extensions.Hosting.Tests.csproj index 3401e0ce..dd6a4edc 100644 --- a/tests/AspectCore.Extensions.Hosting.Tests/AspectCore.Extensions.Hosting.Tests.csproj +++ b/tests/AspectCore.Extensions.Hosting.Tests/AspectCore.Extensions.Hosting.Tests.csproj @@ -1,12 +1,12 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 false - + all diff --git a/tests/AspectCore.Extensions.LightInject.Test/AspectCore.Extensions.LightInject.Test.csproj b/tests/AspectCore.Extensions.LightInject.Test/AspectCore.Extensions.LightInject.Test.csproj index 40fbad4b..94b96f80 100644 --- a/tests/AspectCore.Extensions.LightInject.Test/AspectCore.Extensions.LightInject.Test.csproj +++ b/tests/AspectCore.Extensions.LightInject.Test/AspectCore.Extensions.LightInject.Test.csproj @@ -1,7 +1,7 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 portable true false @@ -16,7 +16,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/tests/AspectCore.Extensions.Reflection.Test/AspectCore.Extensions.Reflection.Test.csproj b/tests/AspectCore.Extensions.Reflection.Test/AspectCore.Extensions.Reflection.Test.csproj index bb75cef0..33cf431a 100644 --- a/tests/AspectCore.Extensions.Reflection.Test/AspectCore.Extensions.Reflection.Test.csproj +++ b/tests/AspectCore.Extensions.Reflection.Test/AspectCore.Extensions.Reflection.Test.csproj @@ -1,7 +1,7 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 portable AspectCore.Extensions.Reflection.Test AspectCore.Extensions.Reflection.Test @@ -15,17 +15,20 @@ + + + + + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - diff --git a/tests/AspectCore.Extensions.Windsor.Test/AspectCore.Extensions.Windsor.Test.csproj b/tests/AspectCore.Extensions.Windsor.Test/AspectCore.Extensions.Windsor.Test.csproj index f806632c..01c608f9 100644 --- a/tests/AspectCore.Extensions.Windsor.Test/AspectCore.Extensions.Windsor.Test.csproj +++ b/tests/AspectCore.Extensions.Windsor.Test/AspectCore.Extensions.Windsor.Test.csproj @@ -1,14 +1,25 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 false AspectCoreTest.Windsor + + + + + + + + + + + + - - + all diff --git a/tests/AspectCore.Tests/AspectCore.Tests.csproj b/tests/AspectCore.Tests/AspectCore.Tests.csproj index 0c1dbbc4..4ed4df2e 100644 --- a/tests/AspectCore.Tests/AspectCore.Tests.csproj +++ b/tests/AspectCore.Tests/AspectCore.Tests.csproj @@ -1,11 +1,23 @@  - net6.0;net5.0;netcoreapp3.1 + net7.0;net6.0;net5.0;netcoreapp3.1 false + + + + + + + + + + + + + - - + all