Skip to content

Commit

Permalink
Releases/v1.8.1 (#223)
Browse files Browse the repository at this point in the history
* Fixing mapping of ctor parameters named eactly the same as members, re: #211 / Moving LangVersion to Build.Directory.props / Performance tweaks / Updating NuGet packages

* Renames for clarity

* Handling named, indexed VB.NET properties, re: #221

* Support for VB.NET named, indexed properties where all indexes have default values, re: #221 / Performance improvements

* Fixing cache concurrency

* Switching .NET Core test projects to LTS versions

* Adding .NET 5 + 6 test projects

* Updating release notes

* Handling named, indexed property null optional default index values, re: #211

* Tweak

* Updating to v1.8.1

* Removing NuGet pack bat file

* Add v1.8.1 NuGet package
  • Loading branch information
SteveWilkes authored Mar 31, 2022
1 parent 4b76ad8 commit cba0e12
Show file tree
Hide file tree
Showing 53 changed files with 654 additions and 212 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AgileObjects.NetStandardPolyfills, Version=1.5.0.0, Culture=neutral, PublicKeyToken=06131ac1c008ad4e, processorArchitecture=MSIL">
<HintPath>..\packages\AgileObjects.NetStandardPolyfills.1.5.0\lib\net40\AgileObjects.NetStandardPolyfills.dll</HintPath>
<Reference Include="AgileObjects.NetStandardPolyfills, Version=1.6.0.0, Culture=neutral, PublicKeyToken=06131ac1c008ad4e, processorArchitecture=MSIL">
<HintPath>..\packages\AgileObjects.NetStandardPolyfills.1.6.0\lib\net40\AgileObjects.NetStandardPolyfills.dll</HintPath>
</Reference>
<Reference Include="AgileObjects.ReadableExpressions, Version=2.6.0.0, Culture=neutral, PublicKeyToken=9f54ad81db69da8e, processorArchitecture=MSIL">
<HintPath>..\packages\AgileObjects.ReadableExpressions.2.6.0\lib\net40\AgileObjects.ReadableExpressions.dll</HintPath>
<Reference Include="AgileObjects.ReadableExpressions, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9f54ad81db69da8e, processorArchitecture=MSIL">
<HintPath>..\packages\AgileObjects.ReadableExpressions.3.2.0\lib\net40\AgileObjects.ReadableExpressions.dll</HintPath>
</Reference>
<Reference Include="AutoMapper, Version=7.0.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
<HintPath>..\packages\AutoMapper.7.0.1\lib\net45\AutoMapper.dll</HintPath>
Expand Down
4 changes: 2 additions & 2 deletions AgileMapper.PerformanceTester.Net461/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AgileObjects.NetStandardPolyfills" version="1.5.0" targetFramework="net461" />
<package id="AgileObjects.ReadableExpressions" version="2.6.0" targetFramework="net461" />
<package id="AgileObjects.NetStandardPolyfills" version="1.6.0" targetFramework="net461" />
<package id="AgileObjects.ReadableExpressions" version="3.2.0" targetFramework="net461" />
<package id="AutoMapper" version="7.0.1" targetFramework="net452" />
<package id="Expressmapper" version="1.9.1" targetFramework="net452" requireReinstallation="true" />
<package id="Mapster" version="3.3.1" targetFramework="net452" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses.Vb\AgileMapper.UnitTests.MoreTestClasses.Vb.vbproj" />
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses\AgileMapper.UnitTests.MoreTestClasses.csproj" />
<ProjectReference Include="..\AgileMapper\AgileMapper.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net35;netstandard1.0</TargetFrameworks>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.MoreTestClasses.Vb</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.MoreTestClasses.Vb</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup>
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35'">$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
</PropertyGroup>

</Project>
29 changes: 29 additions & 0 deletions AgileMapper.UnitTests.MoreTestClasses.Vb/PublicNamedIndex.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Public Class PublicNamedIndex(Of T1, T2)

Private _value1ToReturn As T1

Public WriteOnly Property Value1ToReturn As T1
Set
_value1ToReturn = Value
End Set
End Property

Public ReadOnly Property Value1(
Optional indexOne As Integer = 1,
Optional indexTwo As Integer? = Nothing) As T1
Get
Return _value1ToReturn
End Get
End Property

Public Property Value2SetValue As T2

Public WriteOnly Property Value2(
indexOne As Integer,
indexTwo As Integer) As T2
Set
Value2SetValue = Value
End Set
End Property

End Class
4 changes: 0 additions & 4 deletions AgileMapper.UnitTests.MoreTestClasses/packages.config

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net35</TargetFramework>
<LangVersion>8.0</LangVersion>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Net35</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Net35</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -29,7 +28,6 @@
<ItemGroup>
<Reference Include="System" />
<PackageReference Include="DynamicLanguageRuntime" Version="1.1.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.7.0">
<PrivateAssets>all</PrivateAssets>
Expand All @@ -39,7 +37,6 @@

<ItemGroup>
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses\AgileMapper.UnitTests.MoreTestClasses.csproj" />
</ItemGroup>

</Project>
40 changes: 40 additions & 0 deletions AgileMapper.UnitTests.Net5/AgileMapper.UnitTests.Net5.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Net5</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors></WarningsAsErrors>
<NoWarn>0649;1701;1702</NoWarn>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup>
<DefineConstants>$(DefineConstants);TRACE;FEATURE_SERIALIZATION;FEATURE_DYNAMIC;FEATURE_DYNAMIC_ROOT_SOURCE;FEATURE_ISET;FEATURE_STRINGSPLIT_OPTIONS;FEATURE_APPDOMAIN</DefineConstants>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\AgileMapper.UnitTests\**\*.cs" Exclude="..\AgileMapper.UnitTests\obj\**\*.cs;..\AgileMapper.UnitTests\Properties\*.cs;..\AgileMapper.UnitTests\WhenUsingPartialTrust.cs;">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
</ItemGroup>

</Project>
40 changes: 40 additions & 0 deletions AgileMapper.UnitTests.Net6/AgileMapper.UnitTests.Net6.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Net6</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors></WarningsAsErrors>
<NoWarn>0649;1701;1702</NoWarn>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup>
<DefineConstants>$(DefineConstants);TRACE;FEATURE_SERIALIZATION;FEATURE_DYNAMIC;FEATURE_DYNAMIC_ROOT_SOURCE;FEATURE_ISET;FEATURE_STRINGSPLIT_OPTIONS;FEATURE_APPDOMAIN</DefineConstants>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\AgileMapper.UnitTests\**\*.cs" Exclude="..\AgileMapper.UnitTests\obj\**\*.cs;..\AgileMapper.UnitTests\Properties\*.cs;..\AgileMapper.UnitTests\WhenUsingPartialTrust.cs;">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp1.0</TargetFramework>
<RuntimeFrameworkVersion>1.1.13</RuntimeFrameworkVersion>
<LangVersion>8.0</LangVersion>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.NetCore</AssemblyName>
<TargetFramework>netcoreapp1.1</TargetFramework>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.NetCore1</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsAsErrors></WarningsAsErrors>
Expand All @@ -25,7 +23,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="1.1.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
Expand All @@ -36,8 +34,6 @@

<ItemGroup>
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses\AgileMapper.UnitTests.MoreTestClasses.csproj" />
<ProjectReference Include="..\AgileMapper\AgileMapper.csproj" AdditionalProperties="TargetFramework=netstandard1.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<RuntimeFrameworkVersion>2.2.7</RuntimeFrameworkVersion>
<LangVersion>8.0</LangVersion>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.NetCore2</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -26,7 +24,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
Expand All @@ -37,7 +35,6 @@

<ItemGroup>
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses\AgileMapper.UnitTests.MoreTestClasses.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RuntimeFrameworkVersion>3.1.4</RuntimeFrameworkVersion>
<LangVersion>8.0</LangVersion>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.NetCore3</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -26,7 +24,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="3.1.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
Expand All @@ -37,7 +35,6 @@

<ItemGroup>
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses\AgileMapper.UnitTests.MoreTestClasses.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<LangVersion>8.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.NonParallel</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.NonParallel</RootNamespace>
Expand All @@ -25,8 +24,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses\AgileMapper.UnitTests.MoreTestClasses.csproj" />
<ProjectReference Include="..\AgileMapper.UnitTests\AgileMapper.UnitTests.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<LangVersion>8.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Orms.Ef5.LocalDb</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Orms.Ef5.LocalDb</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<LangVersion>8.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Orms.Ef5</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Orms.Ef5</RootNamespace>
Expand All @@ -16,7 +15,7 @@

<ItemGroup>
<Reference Include="System" />
<PackageReference Include="Effort" Version="2.2.10" />
<PackageReference Include="Effort" Version="2.2.16" />
<PackageReference Include="EntityFramework" Version="5.0.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<LangVersion>8.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Orms.Ef6.LocalDb</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Orms.Ef6.LocalDb</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<LangVersion>8.0</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Orms.Ef6</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Orms.Ef6</RootNamespace>
Expand All @@ -16,7 +15,7 @@

<ItemGroup>
<Reference Include="System" />
<PackageReference Include="Effort.EF6" Version="2.2.10" />
<PackageReference Include="Effort.EF6" Version="2.2.16" />
<PackageReference Include="EntityFramework" Version="6.4.4" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFramework>netcoreapp1.0</TargetFramework>
<RuntimeFrameworkVersion>1.1.13</RuntimeFrameworkVersion>
<LangVersion>8.0</LangVersion>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Orms.EfCore1</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Orms.EfCore1</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<RuntimeFrameworkVersion>2.2.7</RuntimeFrameworkVersion>
<LangVersion>8.0</LangVersion>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Orms.EfCore2</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Orms.EfCore2</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -18,7 +16,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="2.2.6" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net461;netstandard1.3</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Orms</AssemblyName>
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Orms</RootNamespace>
<DebugType>full</DebugType>
Expand Down
Loading

0 comments on commit cba0e12

Please sign in to comment.