Skip to content

Commit 9808a0d

Browse files
LionelValletLionel ValletBlaiseD
authored
Supporting net10.0 and Automapper v16. (#187)
* Supporting net10.0 and Automapper v16. * Updating the failing test. --------- Co-authored-by: Lionel Vallet <[email protected]> Co-authored-by: Blaise Taylor <[email protected]>
1 parent 723d346 commit 9808a0d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/AutoMapper.Extensions.ExpressionMapping/AutoMapper.Extensions.ExpressionMapping.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Summary>Expression mapping (OData) extensions for AutoMapper</Summary>
55
<Description>Expression mapping (OData) extensions for AutoMapper</Description>
6-
<TargetFrameworks>netstandard2.0;net8.0;net9.0</TargetFrameworks>
6+
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<AssemblyOriginatorKeyFile>..\..\AutoMapper.snk</AssemblyOriginatorKeyFile>
99
<SignAssembly>true</SignAssembly>
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="AutoMapper" Version="[15.0.1,16.0.0)" />
32+
<PackageReference Include="AutoMapper" Version="[16.0.0,17.0.0)" />
3333
<PackageReference Include="MinVer" Version="6.0.0">
3434
<PrivateAssets>all</PrivateAssets>
3535
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

tests/AutoMapper.Extensions.ExpressionMapping.UnitTests/AutoMapper.Extensions.ExpressionMapping.UnitTests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework Condition=" '$(OS)' != 'Windows_NT' ">net8.0</TargetFramework>
5-
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net481;net8.0</TargetFrameworks>
4+
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">net8.0;net10.0</TargetFrameworks>
5+
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net481;net8.0;net9.0;net10.0</TargetFrameworks>
66

77
<IsPackable>false</IsPackable>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
12-
<PackageReference Include="Microsoft.OData.Edm" Version="7.21.7" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
12+
<PackageReference Include="Microsoft.OData.Edm" Version="7.22.0" />
1313
<PackageReference Include="Shouldly" Version="4.3.0" />
1414
<PackageReference Include="xunit" Version="2.9.3" />
15-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
15+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>

tests/AutoMapper.Extensions.ExpressionMapping.UnitTests/EnumerableDotContainsWorksOnLocalVariables.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void Issue87()
1717
cfg.AddExpressionMapping();
1818

1919
cfg.CreateMap<Source, SourceDto>()
20-
.ForMember(o => o.Items, config => config.MapFrom(p => p.Items.Select(s => s.Name)));
20+
.ForMember(o => o.Items, config => config.MapFrom(p => p.Items.Select(s => s.Name).ToArray()));
2121
});
2222

2323
var mapper = config.CreateMapper();

0 commit comments

Comments
 (0)