Skip to content

Commit 0356541

Browse files
authored
Releases/1.7 (#199)
* Optimising for loops! * Tidying * Organising enumerable mapping classes * Tidying enumerable mapping code * Fixing struct method creation factory caching * Updating projects to .NET Core project format / Tidying * Converting remaining projects to .NET Core project format, removing common AssemblyInfo files * Adding more-efficient FilterToArray method * Organising classes * Adding .NET 3.5 'hint path' * Using Environment.NewLine in test * Updating NUnit version * Organising configuration classes * Updating .Net35 test project * Trying NUnit test discovery fix * Removing * Removing unused code * Updating to v1.7 * Features/map instances using (#192) * Initial test + implementation * Resetting implementation * Adding mapping factories * Continued * Support for custom, unconditional root mapping factories * Continued * Removing target null checking from nested access checks * Integrating configured mapping factories as part of alternate mappings in ComplexTypeMappingExpressionFactory * Support for custom mapping factories in derived collection elements / Erroring if custom factories have invalid return types * Extending test coverage * Test coverage for configured root element mapping factory * Support for unconditional configured enumerable mapping factories * Support for conditional configured root enumerable mapping * Extending test coverage * Incorrect mapping factory configuration test coverge / Updating documentation * Tidying * Support for configuring non-enumerable to enumerable mapping using MapInstancesUsing * Refactoring * Support for root configured non-enumerable to enumerable mapping * Extending test coverage * Updating documentation / Adding inline mapping factory tests * Support for configured non-enumerable to enumerable element mapping * Fixing Net35 build * Support for conditional configured non-enumerable to enumerable mapping (#193) * Support for conditional configured non-enumerable to enumerable mapping * Fixing tests * Tidying * Removing duplicate short-circuit returns * Extending test coverage * Bugs/173 dictionary values to target (#194), re: issue #173 * Splitting ToTarget DataSource tests into dedicated test class / Adding failing test to prove bug * Fixing Dictionary.Values to List ToTarget data source mapping * Adding .NET Core 3.1 test project + updating packages and framework runtimes * Fix for configured simple-to-complex array data sources * Simplifying 'invocation position' code * Setting ConfiguredLambdaInfo target value factory in ctor * Features/value injection (#195) * All tests passing using ValueInjectors! * Removing ParametersSwapper + tidying * Deferring creation of Create mapping data calls * Support for same-type enumerable-to-enumerable to-target data sources * Including configured ToTarget data sources in mapping plan validation, re: #184 * Tidying * Updating readme * Features/sequential data sources (#196) * Basic sequential data source support, re: issue #184 * Erroring if duplicate sequential data sources are configured * Extra test coverage * Erroring if sequential data source configured for simple type members * Extra test coverage * Erroring if configured data sources conflict with ignored source members * Start of API update * Updating sequential data source API * Support for conditional sequential data sources * Extra test coverage * Extending test coverage * Adding documentation * Extra test coverage * Start of sequential data sources for ctor parameters / Properly using fallback values in more places / Fixing tests * Moving map methods back into interface to fix test overload resolution?! * Fixing data source conflict tests * Removing sequential ctor data source test * Updating to v1.7-preview1 * Updating release notes, adding v1.7-preview1 NuGet package * Surfacing mapping plan Expressions / Updating to ReadableExpressions v2.4 * Adding icon files * Updating packages * Features/to target instead (#198) * Start of ToTargetInstead logic * Refactoring * Moar * Ensuring configured mappings include callbacks and exception handling * Extending ToTargetInstead test coverage / ToTargetInstead support with simple type members * ToTargetInstead support for factory Funcs * Extending test coverage * Extending test coverage * Erroring if simple ToTarget source configured for complex target * Conditional ToTargetInstead support for complex type enumerable elements * Tidying * Tidying * Extra test coverage * Updating documentation * Erroring with redundant ToTarget configurations * Updating .NET Core framework versions for AppVeyor * Adding Test framework reference for AppVeyor * Updating framework version for AppVeyor * Adding NuGet package v1.7
1 parent b881f6d commit 0356541

File tree

380 files changed

+7605
-5297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+7605
-5297
lines changed

AgileMapper.PerformanceTester.Net45/Properties/AssemblyInfo.cs

-5
This file was deleted.

AgileMapper.PerformanceTester.Net45/AgileMapper.PerformanceTester.Net45.csproj renamed to AgileMapper.PerformanceTester.Net461/AgileMapper.PerformanceTester.Net461.csproj

+9-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<Import Project="..\common.props" />
54
<PropertyGroup>
65
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
76
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -10,9 +9,10 @@
109
<AppDesignerFolder>Properties</AppDesignerFolder>
1110
<RootNamespace>AgileObjects.AgileMapper.PerformanceTester.Net45</RootNamespace>
1211
<AssemblyName>AgileObjects.AgileMapper.PerformanceTester.Net45</AssemblyName>
13-
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1413
<FileAlignment>512</FileAlignment>
1514
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
15+
<TargetFrameworkProfile />
1616
</PropertyGroup>
1717
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1818
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -34,11 +34,11 @@
3434
<WarningLevel>4</WarningLevel>
3535
</PropertyGroup>
3636
<ItemGroup>
37-
<Reference Include="AgileObjects.NetStandardPolyfills, Version=1.4.0.0, Culture=neutral, PublicKeyToken=06131ac1c008ad4e, processorArchitecture=MSIL">
38-
<HintPath>..\packages\AgileObjects.NetStandardPolyfills.1.4.0\lib\net40\AgileObjects.NetStandardPolyfills.dll</HintPath>
37+
<Reference Include="AgileObjects.NetStandardPolyfills, Version=1.4.1.0, Culture=neutral, PublicKeyToken=06131ac1c008ad4e, processorArchitecture=MSIL">
38+
<HintPath>..\packages\AgileObjects.NetStandardPolyfills.1.4.1\lib\net40\AgileObjects.NetStandardPolyfills.dll</HintPath>
3939
</Reference>
40-
<Reference Include="AgileObjects.ReadableExpressions, Version=2.3.2.0, Culture=neutral, PublicKeyToken=9f54ad81db69da8e, processorArchitecture=MSIL">
41-
<HintPath>..\packages\AgileObjects.ReadableExpressions.2.3.2\lib\net40\AgileObjects.ReadableExpressions.dll</HintPath>
40+
<Reference Include="AgileObjects.ReadableExpressions, Version=2.5.0.0, Culture=neutral, PublicKeyToken=9f54ad81db69da8e, processorArchitecture=MSIL">
41+
<HintPath>..\packages\AgileObjects.ReadableExpressions.2.5.0\lib\net40\AgileObjects.ReadableExpressions.dll</HintPath>
4242
</Reference>
4343
<Reference Include="AutoMapper, Version=7.0.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005, processorArchitecture=MSIL">
4444
<HintPath>..\packages\AutoMapper.7.0.1\lib\net45\AutoMapper.dll</HintPath>
@@ -69,12 +69,6 @@
6969
<Reference Include="System.Xml" />
7070
</ItemGroup>
7171
<ItemGroup>
72-
<Compile Include="..\CommonAssemblyInfo.cs">
73-
<Link>CommonAssemblyInfo.cs</Link>
74-
</Compile>
75-
<Compile Include="..\VersionInfo.cs">
76-
<Link>VersionInfo.cs</Link>
77-
</Compile>
7872
<Compile Include="ConcreteMappers\ExpressMapper\ExpressMapperComplexTypeMapper.cs" />
7973
<Compile Include="ConcreteMappers\ExpressMapper\ExpressMapperComplexTypeMapperSetup.cs" />
8074
<Compile Include="ConcreteMappers\ExpressMapper\ExpressMapperCtorMapper.cs" />
@@ -83,7 +77,6 @@
8377
<Compile Include="ConcreteMappers\ExpressMapper\ExpressMapperFlatteningMapper.cs" />
8478
<Compile Include="ConcreteMappers\ExpressMapper\ExpressMapperInstantiation.cs" />
8579
<Compile Include="Program.cs" />
86-
<Compile Include="Properties\AssemblyInfo.cs" />
8780
</ItemGroup>
8881
<ItemGroup>
8982
<None Include="App.config" />
@@ -101,6 +94,9 @@
10194
<Name>AgileMapper</Name>
10295
</ProjectReference>
10396
</ItemGroup>
97+
<ItemGroup>
98+
<Folder Include="Properties\" />
99+
</ItemGroup>
104100
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
105101
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
106102
Other similar extension points exist, see Microsoft.Common.targets.
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
55
</startup>
66
<runtime>
77
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
88
<dependentAssembly>
9-
<assemblyIdentity name="AgileObjects.NetStandardPolyfills" publicKeyToken="06131ac1c008ad4e" culture="neutral" />
10-
<bindingRedirect oldVersion="0.0.0.0-1.4.0.0" newVersion="1.4.0.0" />
9+
<assemblyIdentity name="AgileObjects.NetStandardPolyfills" publicKeyToken="06131ac1c008ad4e" culture="neutral"/>
10+
<bindingRedirect oldVersion="0.0.0.0-1.4.0.0" newVersion="1.4.0.0"/>
1111
</dependentAssembly>
1212
</assemblyBinding>
1313
</runtime>
14-
</configuration>
14+
</configuration>
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="AgileObjects.NetStandardPolyfills" version="1.4.0" targetFramework="net452" />
4-
<package id="AgileObjects.ReadableExpressions" version="2.3.2" targetFramework="net452" />
3+
<package id="AgileObjects.NetStandardPolyfills" version="1.4.1" targetFramework="net461" />
4+
<package id="AgileObjects.ReadableExpressions" version="2.5.0" targetFramework="net461" />
55
<package id="AutoMapper" version="7.0.1" targetFramework="net452" />
6-
<package id="Expressmapper" version="1.9.1" targetFramework="net452" />
6+
<package id="Expressmapper" version="1.9.1" targetFramework="net452" requireReinstallation="true" />
77
<package id="Mapster" version="3.3.1" targetFramework="net452" />
8-
<package id="System.ValueTuple" version="4.5.0" targetFramework="net452" />
8+
<package id="System.ValueTuple" version="4.5.0" targetFramework="net452" requireReinstallation="true" />
99
<package id="ValueInjecter" version="3.1.3" targetFramework="net452" />
1010
</packages>

AgileMapper.PerformanceTester.NetCore21/AgileMapper.PerformanceTester.NetCore21.csproj

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Import Project="..\common.props" />
32

43
<PropertyGroup>
54
<OutputType>Exe</OutputType>
@@ -17,7 +16,6 @@
1716
<ItemGroup>
1817
<ProjectReference Include="..\AgileMapper.PerformanceTesting\AgileMapper.PerformanceTesting.csproj" />
1918
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
20-
<ProjectReference Include="..\AgileMapper\AgileMapper.csproj" />
2119
</ItemGroup>
2220

2321
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Import Project="..\common.props" />
32

43
<PropertyGroup>
5-
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
65
<AssemblyName>AgileObjects.AgileMapper.PerformanceTesting</AssemblyName>
76
<RootNamespace>AgileObjects.AgileMapper.PerformanceTesting</RootNamespace>
87
</PropertyGroup>
98

109
<ItemGroup>
1110
<PackageReference Include="AutoMapper" Version="7.0.1" />
1211
<PackageReference Include="Mapster" Version="3.3.1" />
13-
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" />
12+
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
1413
<PackageReference Include="ValueInjecter" Version="3.1.3" />
1514
</ItemGroup>
1615

1716
<ItemGroup>
1817
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
19-
<ProjectReference Include="..\AgileMapper\AgileMapper.csproj" />
2018
</ItemGroup>
2119

2220
</Project>

AgileMapper.UnitTests.Common/AgileMapper.UnitTests.Common.csproj

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Import Project="..\common.props" />
32

43
<PropertyGroup>
5-
<TargetFrameworks>net35;netstandard1.0</TargetFrameworks>
4+
<TargetFrameworks>net35;net461;netstandard1.0</TargetFrameworks>
65
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Common</AssemblyName>
76
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Common</RootNamespace>
87
</PropertyGroup>
98

9+
<PropertyGroup>
10+
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35'">$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
11+
</PropertyGroup>
12+
1013
<ItemGroup>
1114
<ProjectReference Include="..\AgileMapper\AgileMapper.csproj" />
1215
</ItemGroup>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#if NET35
2+
namespace System.ComponentModel.DataAnnotations
3+
{
4+
using System;
5+
6+
public sealed class KeyAttribute : Attribute { }
7+
}
8+
#endif

AgileMapper.UnitTests.MoreTestClasses/MappingExtensions.cs renamed to AgileMapper.UnitTests.Common/MappingExtensions.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AgileObjects.AgileMapper.UnitTests.MoreTestClasses
1+
namespace AgileObjects.AgileMapper.UnitTests.Common
22
{
33
using System;
44
using System.Collections.Generic;
@@ -7,9 +7,7 @@
77
public static class MappingExtensions
88
{
99
public static object RootMapperCountShouldBeOne(this IMapper mapper)
10-
{
11-
return RootMapperCountShouldBe(mapper, 1).First();
12-
}
10+
=> RootMapperCountShouldBe(mapper, 1).First();
1311

1412
public static ICollection<object> RootMapperCountShouldBe(this IMapper mapper, int expected)
1513
{

AgileMapper.UnitTests/TestClasses/PaymentTypeUk.cs renamed to AgileMapper.UnitTests.Common/TestClasses/PaymentTypeUk.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AgileObjects.AgileMapper.UnitTests.TestClasses
1+
namespace AgileObjects.AgileMapper.UnitTests.Common.TestClasses
22
{
33
public enum PaymentTypeUk
44
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace AgileObjects.AgileMapper.UnitTests.Common.TestClasses
2+
{
3+
public enum PaymentTypeUs
4+
{
5+
Cash = 101,
6+
Card = 102,
7+
Check = 103
8+
}
9+
}

AgileMapper.UnitTests/TestClasses/Title.cs renamed to AgileMapper.UnitTests.Common/TestClasses/Title.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AgileObjects.AgileMapper.UnitTests.TestClasses
1+
namespace AgileObjects.AgileMapper.UnitTests.Common.TestClasses
22
{
33
public enum Title
44
{

AgileMapper.UnitTests.MoreTestClasses/AgileMapper.UnitTests.MoreTestClasses.csproj

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Import Project="..\common.props" />
32

43
<PropertyGroup>
54
<TargetFrameworks>net35;netstandard1.0</TargetFrameworks>
@@ -8,6 +7,10 @@
87
<IsPackable>false</IsPackable>
98
</PropertyGroup>
109

10+
<PropertyGroup>
11+
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35'">$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
12+
</PropertyGroup>
13+
1114
<ItemGroup>
1215
<ProjectReference Include="..\AgileMapper\AgileMapper.csproj" />
1316
</ItemGroup>
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,53 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props" Condition="Exists('..\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props')" />
4-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
5-
<Import Project="..\common.props" />
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
63
<PropertyGroup>
7-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
8-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
9-
<ProjectGuid>{E0706509-4A4B-4C0D-A3B2-4A713FFC6ED4}</ProjectGuid>
10-
<OutputType>Library</OutputType>
11-
<AppDesignerFolder>Properties</AppDesignerFolder>
12-
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Net35</RootNamespace>
4+
<TargetFramework>net35</TargetFramework>
5+
<LangVersion>8.0</LangVersion>
136
<AssemblyName>AgileObjects.AgileMapper.UnitTests.Net35</AssemblyName>
14-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
15-
<FileAlignment>512</FileAlignment>
16-
<NuGetPackageImportStamp>
17-
</NuGetPackageImportStamp>
18-
</PropertyGroup>
19-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20-
<DebugSymbols>true</DebugSymbols>
7+
<RootNamespace>AgileObjects.AgileMapper.UnitTests.Net35</RootNamespace>
8+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9+
<WarningsAsErrors></WarningsAsErrors>
10+
<NoWarn>0649;1701;1702</NoWarn>
2111
<DebugType>full</DebugType>
22-
<Optimize>false</Optimize>
23-
<OutputPath>bin\Debug\</OutputPath>
24-
<DefineConstants>TRACE;DEBUG;NET35</DefineConstants>
25-
<ErrorReport>prompt</ErrorReport>
26-
<WarningLevel>4</WarningLevel>
12+
<IsPackable>false</IsPackable>
2713
</PropertyGroup>
28-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29-
<DebugType>pdbonly</DebugType>
30-
<Optimize>true</Optimize>
31-
<OutputPath>bin\Release\</OutputPath>
32-
<DefineConstants>TRACE;NET35</DefineConstants>
33-
<ErrorReport>prompt</ErrorReport>
34-
<WarningLevel>4</WarningLevel>
14+
15+
<PropertyGroup>
16+
<FrameworkPathOverride>$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
3517
</PropertyGroup>
18+
19+
<PropertyGroup>
20+
<DefineConstants>$(DefineConstants);TRACE;FEATURE_DRAWING</DefineConstants>
21+
</PropertyGroup>
22+
23+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
24+
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
25+
</PropertyGroup>
26+
27+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
28+
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
29+
</PropertyGroup>
30+
3631
<ItemGroup>
37-
<Reference Include="AgileObjects.NetStandardPolyfills, Version=1.4.0.0, Culture=neutral, PublicKeyToken=06131ac1c008ad4e, processorArchitecture=MSIL">
38-
<HintPath>..\packages\AgileObjects.NetStandardPolyfills.1.4.0\lib\net35\AgileObjects.NetStandardPolyfills.dll</HintPath>
39-
</Reference>
40-
<Reference Include="AgileObjects.ReadableExpressions, Version=2.3.2.0, Culture=neutral, PublicKeyToken=9f54ad81db69da8e, processorArchitecture=MSIL">
41-
<HintPath>..\packages\AgileObjects.ReadableExpressions.2.3.2\lib\net35\AgileObjects.ReadableExpressions.dll</HintPath>
42-
</Reference>
43-
<Reference Include="Microsoft.Dynamic, Version=1.1.2.22, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL">
44-
<HintPath>..\packages\DynamicLanguageRuntime.1.1.2\lib\Net35\Microsoft.Dynamic.dll</HintPath>
45-
</Reference>
46-
<Reference Include="Microsoft.Scripting, Version=1.1.2.22, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL">
47-
<HintPath>..\packages\DynamicLanguageRuntime.1.1.2\lib\Net35\Microsoft.Scripting.dll</HintPath>
48-
</Reference>
49-
<Reference Include="Microsoft.Scripting.AspNet, Version=1.1.1.21, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL">
50-
<HintPath>..\packages\DynamicLanguageRuntime.1.1.2\lib\Net35\Microsoft.Scripting.AspNet.dll</HintPath>
51-
</Reference>
52-
<Reference Include="Microsoft.Scripting.Core, Version=1.1.2.22, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL">
53-
<HintPath>..\packages\DynamicLanguageRuntime.1.1.2\lib\Net35\Microsoft.Scripting.Core.dll</HintPath>
54-
</Reference>
55-
<Reference Include="Microsoft.Scripting.Metadata, Version=1.1.2.22, Culture=neutral, PublicKeyToken=7f709c5b713576e1, processorArchitecture=MSIL">
56-
<HintPath>..\packages\DynamicLanguageRuntime.1.1.2\lib\Net35\Microsoft.Scripting.Metadata.dll</HintPath>
57-
</Reference>
58-
<Reference Include="nunit.framework, Version=3.6.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
59-
<HintPath>..\packages\NUnit.3.6.1\lib\net35\nunit.framework.dll</HintPath>
60-
</Reference>
61-
<Reference Include="System" />
62-
<Reference Include="System.Core" />
63-
<Reference Include="System.Xml.Linq" />
64-
<Reference Include="System.Data.DataSetExtensions" />
65-
<Reference Include="System.Data" />
66-
<Reference Include="System.Xml" />
67-
</ItemGroup>
68-
<ItemGroup>
69-
<Compile Include="..\AgileMapper.UnitTests\**\*.cs" Exclude="..\AgileMapper.UnitTests\obj\**\*.cs;..\AgileMapper.UnitTests\Dynamics\**\*.cs;..\AgileMapper.UnitTests\WhenUsingPartialTrust.cs;..\AgileMapper.UnitTests\WhenFlatteningToDynamics.cs;..\AgileMapper.UnitTests\WhenMappingConcurrently.cs;">
32+
<Compile Include="..\AgileMapper.UnitTests\**\*.cs" Exclude="..\AgileMapper.UnitTests\Properties\*.cs;..\AgileMapper.UnitTests\obj\**\*.cs;..\AgileMapper.UnitTests\Dynamics\**\*.cs;..\AgileMapper.UnitTests\WhenUsingPartialTrust.cs;..\AgileMapper.UnitTests\WhenFlatteningToDynamics.cs;..\AgileMapper.UnitTests\WhenMappingConcurrently.cs;">
7033
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
7134
</Compile>
7235
</ItemGroup>
36+
7337
<ItemGroup>
74-
<Compile Include="..\CommonAssemblyInfo.cs">
75-
<Link>Properties\CommonAssemblyInfo.cs</Link>
76-
</Compile>
77-
</ItemGroup>
78-
<ItemGroup>
79-
<None Include="packages.config" />
38+
<Reference Include="System" />
39+
<PackageReference Include="DynamicLanguageRuntime" Version="1.1.2" />
40+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
41+
<PackageReference Include="NUnit" Version="3.12.0" />
42+
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1">
43+
<PrivateAssets>all</PrivateAssets>
44+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
45+
</PackageReference>
8046
</ItemGroup>
47+
8148
<ItemGroup>
82-
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj">
83-
<Project>{69c1f1a9-f8a4-4cee-90e3-67b8d6dae8f6}</Project>
84-
<Name>AgileMapper.UnitTests.Common</Name>
85-
</ProjectReference>
86-
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses\AgileMapper.UnitTests.MoreTestClasses.csproj">
87-
<Project>{0d045f11-1cbb-4be1-b854-d7e5d348c2fe}</Project>
88-
<Name>AgileMapper.UnitTests.MoreTestClasses</Name>
89-
</ProjectReference>
90-
<ProjectReference Include="..\AgileMapper\AgileMapper.csproj">
91-
<Project>{147ddcce-cdd3-4dd0-8ba3-d3f2f239e161}</Project>
92-
<Name>AgileMapper</Name>
93-
</ProjectReference>
49+
<ProjectReference Include="..\AgileMapper.UnitTests.Common\AgileMapper.UnitTests.Common.csproj" />
50+
<ProjectReference Include="..\AgileMapper.UnitTests.MoreTestClasses\AgileMapper.UnitTests.MoreTestClasses.csproj" />
9451
</ItemGroup>
95-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
96-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
97-
<PropertyGroup>
98-
<ErrorText>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}.</ErrorText>
99-
</PropertyGroup>
100-
<Error Condition="!Exists('..\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props'))" />
101-
</Target>
102-
</Project>
52+
53+
</Project>

AgileMapper.UnitTests.Net35/packages.config

-8
This file was deleted.

0 commit comments

Comments
 (0)