From f39044efc46d6bb91d0d0c2f2858511026db8d0a Mon Sep 17 00:00:00 2001 From: Valfrid Couto Date: Wed, 23 Jun 2021 20:48:00 -0300 Subject: [PATCH] Add Multitarget to Netcore 2.1, 3.1 and Net 5.0 --- Slapper.AutoMapper.Tests/PerformanceTests.cs | 12 ++ Slapper.AutoMapper.Tests/Slapper.Tests.csproj | 12 +- .../Properties/AssemblyInfo.cs | 36 ----- .../Slapper.Tests47.csproj | 141 ------------------ Slapper.AutoMapper.sln | 6 - Slapper.AutoMapper/Slapper.csproj | 3 +- 6 files changed, 21 insertions(+), 189 deletions(-) delete mode 100644 Slapper.AutoMapper.Tests47/Properties/AssemblyInfo.cs delete mode 100644 Slapper.AutoMapper.Tests47/Slapper.Tests47.csproj diff --git a/Slapper.AutoMapper.Tests/PerformanceTests.cs b/Slapper.AutoMapper.Tests/PerformanceTests.cs index aa495ff..2f73190 100644 --- a/Slapper.AutoMapper.Tests/PerformanceTests.cs +++ b/Slapper.AutoMapper.Tests/PerformanceTests.cs @@ -46,6 +46,10 @@ public class OrderDetail /// v1.0.0.6: Mapped 50000 objects in 1642 ms. /// v2.0.2 : Mapped 50000 objects in 1171 ms. /// v2.0.3 : Mapped 50000 objects in 472 ms. + /// v2.0.5 : Mapped 50000 objects in 467 ms on Net 47. + /// v2.0.5 : Mapped 50000 objects in 220 ms on Net 5.0. + /// v2.0.5 : Mapped 50000 objects in 307 ms on NetCore 2.1. + /// v2.0.5 : Mapped 50000 objects in 253 ms on NetCore 3.1. /// [Test] public void Simple_Performance_Test() @@ -94,6 +98,10 @@ public void Simple_Performance_Test() /// v1.0.0.8: Mapped 50000 objects in 4185 ms. /// v2.0.2 : Mapped 50000 objects in 5348 ms. /// v2.0.3 : Mapped 50000 objects in 3527 ms. + /// v2.0.5 : Mapped 50000 objects in 3527 ms on Net 47. + /// v2.0.5 : Mapped 50000 objects in 1600 ms on Net 5.0. + /// v2.0.5 : Mapped 50000 objects in 2300 ms on NetCore 2.1. + /// v2.0.5 : Mapped 50000 objects in 2000 ms on NetCore 3.1. /// [Test] public void Complex_Performance_Test() @@ -195,6 +203,10 @@ public class Product /// Historical Test Results /// v2.0.2: Mapped 120000 objects in 30333 ms. /// v2.0.3: Mapped 120000 objects in 13046 ms. + /// v2.0.5: Mapped 120000 objects in 14900 ms on Net 47. + /// v2.0.5: Mapped 120000 objects in 7000 ms on Net 5.0. + /// v2.0.5: Mapped 120000 objects in 10500 ms on NetCore 2.1. + /// v2.0.5: Mapped 120000 objects in 8300 ms on NetCore 3.1. /// [Test] public void Complex_Performance_Test() diff --git a/Slapper.AutoMapper.Tests/Slapper.Tests.csproj b/Slapper.AutoMapper.Tests/Slapper.Tests.csproj index 4d8c183..8158af6 100644 --- a/Slapper.AutoMapper.Tests/Slapper.Tests.csproj +++ b/Slapper.AutoMapper.Tests/Slapper.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net47;net5.0;netcoreapp2.1;netcoreapp3.1 false @@ -9,13 +9,17 @@ - - - + + + + + + + diff --git a/Slapper.AutoMapper.Tests47/Properties/AssemblyInfo.cs b/Slapper.AutoMapper.Tests47/Properties/AssemblyInfo.cs deleted file mode 100644 index 4cdbec4..0000000 --- a/Slapper.AutoMapper.Tests47/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ClassLibrary1")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("LG")] -[assembly: AssemblyProduct("ClassLibrary1")] -[assembly: AssemblyCopyright("Copyright © LG 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("de044332-9d9d-48ba-b63d-72bb64e5dee6")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Slapper.AutoMapper.Tests47/Slapper.Tests47.csproj b/Slapper.AutoMapper.Tests47/Slapper.Tests47.csproj deleted file mode 100644 index e2390c1..0000000 --- a/Slapper.AutoMapper.Tests47/Slapper.Tests47.csproj +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - Debug - AnyCPU - {DE044332-9D9D-48BA-B63D-72BB64E5DEE6} - Library - Properties - Slapper.Tests - Slapper.Tests47 - v4.7 - 512 - true - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\NUnit.3.13.1\lib\net45\nunit.framework.dll - - - False - ..\Slapper.AutoMapper\bin\Release\net47\Slapper.dll - - - - - - - - - - - - - ArrayTests.cs - - - CachingBehaviorTests.cs - - - ComplexMapsParentsAndChlidTest.cs - - - ComplexMapTests.cs - - - EmptyList.cs - - - ExceptionTests.cs - - - GuidConverterTests.cs - - - HashCollisionTests.cs - - - IdentifierTests.cs - - - MapCollectionsTypedTest.cs - - - MapDynamicTests.cs - - - MappingToEnumTests.cs - - - MappingToGuidTests.cs - - - MappingToNullableTypesTests.cs - - - MapUniqueChildsIdTest.cs - - - MatchingChildNameTests.cs - - - NoIdentifierTests.cs - - - NullTests.cs - - - ParentMappingTests.cs - - - PerformanceTests.cs - - - ReadMeTests.cs - - - SimpleMapTests.cs - - - SimpleTypeConversionTests.cs - - - TestBase.cs - - - TestHelpers.cs - - - TypeActivatorTests.cs - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - \ No newline at end of file diff --git a/Slapper.AutoMapper.sln b/Slapper.AutoMapper.sln index a45259f..01513dc 100644 --- a/Slapper.AutoMapper.sln +++ b/Slapper.AutoMapper.sln @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Slapper", "Slapper.AutoMapp EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Slapper.Tests", "Slapper.AutoMapper.Tests\Slapper.Tests.csproj", "{DB57364B-6EE2-46C0-837E-B43F53CEEFA5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Slapper.Tests47", "Slapper.AutoMapper.Tests47\Slapper.Tests47.csproj", "{DE044332-9D9D-48BA-B63D-72BB64E5DEE6}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -23,10 +21,6 @@ Global {DB57364B-6EE2-46C0-837E-B43F53CEEFA5}.Debug|Any CPU.Build.0 = Debug|Any CPU {DB57364B-6EE2-46C0-837E-B43F53CEEFA5}.Release|Any CPU.ActiveCfg = Release|Any CPU {DB57364B-6EE2-46C0-837E-B43F53CEEFA5}.Release|Any CPU.Build.0 = Release|Any CPU - {DE044332-9D9D-48BA-B63D-72BB64E5DEE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DE044332-9D9D-48BA-B63D-72BB64E5DEE6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DE044332-9D9D-48BA-B63D-72BB64E5DEE6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DE044332-9D9D-48BA-B63D-72BB64E5DEE6}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Slapper.AutoMapper/Slapper.csproj b/Slapper.AutoMapper/Slapper.csproj index 7445c48..10f4bb4 100644 --- a/Slapper.AutoMapper/Slapper.csproj +++ b/Slapper.AutoMapper/Slapper.csproj @@ -1,7 +1,6 @@  - netstandard2.1 true Slapper.AutoMapper Randy Burden & contributors @@ -9,7 +8,7 @@ https://github.com/SlapperAutoMapper/Slapper.AutoMapper 2.0.4 - netstandard2.1;net47 + netstandard2.1;net47;net5.0;netcoreapp2.1;netcoreapp3.1 Slapper.AutoMapper.Core Copyright (c) 2016, Randy Burden and contributors. All rights reserved. Slapper.AutoMapper is a mapping library that can convert dynamic data into static types and populate complex nested child objects.