Skip to content

Commit 61f7643

Browse files
authored
Update to net10 (#20)
* Update to NET10 * Removed support for frameworks net7.0 and net6.0 Updated test nuget packages to latest versions * Updated docs and appveyor build to support net10 --------- Co-authored-by: Henk Kin <[email protected]>
1 parent ca6df75 commit 61f7643

File tree

5 files changed

+44
-58
lines changed

5 files changed

+44
-58
lines changed

EntityCloner.Microsoft.EntityFrameworkCore.Benchmarks/EntityCloner.Microsoft.EntityFrameworkCore.Benchmarks.csproj

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0;</TargetFrameworks>
6-
</PropertyGroup>
7-
8-
<ItemGroup Condition="('$(TargetFramework)' == 'net6.0')">
9-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[6,)" />
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="[6,)" />
11-
</ItemGroup>
12-
<PropertyGroup Condition="('$(TargetFramework)' == 'net6.0')">
13-
<DefineConstants>NET6_0</DefineConstants>
14-
</PropertyGroup>
15-
16-
<ItemGroup Condition="('$(TargetFramework)' == 'net7.0')">
17-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[7,)" />
18-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="[7,)" />
19-
</ItemGroup>
20-
<PropertyGroup Condition="('$(TargetFramework)' == 'net7.0')">
21-
<DefineConstants>NET7_0</DefineConstants>
5+
<TargetFrameworks>net10.0;net9.0;net8.0;</TargetFrameworks>
226
</PropertyGroup>
237

248
<ItemGroup Condition="('$(TargetFramework)' == 'net8.0')">
@@ -37,8 +21,16 @@
3721
<DefineConstants>NET9_0</DefineConstants>
3822
</PropertyGroup>
3923

24+
<ItemGroup Condition="('$(TargetFramework)' == 'net10.0')">
25+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[10,)" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="[10,)" />
27+
</ItemGroup>
28+
<PropertyGroup Condition="('$(TargetFramework)' == 'net10.0')">
29+
<DefineConstants>NET10_0</DefineConstants>
30+
</PropertyGroup>
31+
4032
<ItemGroup>
41-
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
33+
<PackageReference Include="BenchmarkDotNet" Version="0.15.6" />
4234
</ItemGroup>
4335

4436
<ItemGroup>

EntityCloner.Microsoft.EntityFrameworkCore.Tests/EntityCloner.Microsoft.EntityFrameworkCore.Tests.csproj

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0;</TargetFrameworks>
3+
<TargetFrameworks>net10.0;net9.0;net8.0;</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
</PropertyGroup>
66

7-
<ItemGroup Condition="('$(TargetFramework)' == 'net6.0')">
8-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[6,)" />
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="[6,)" />
10-
</ItemGroup>
11-
<PropertyGroup Condition="('$(TargetFramework)' == 'net6.0')">
12-
<DefineConstants>NET6_0</DefineConstants>
13-
</PropertyGroup>
14-
15-
<ItemGroup Condition="('$(TargetFramework)' == 'net7.0')">
16-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[7,)" />
17-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="[7,)" />
18-
</ItemGroup>
19-
<PropertyGroup Condition="('$(TargetFramework)' == 'net7.0')">
20-
<DefineConstants>NET7_0</DefineConstants>
21-
</PropertyGroup>
22-
237
<ItemGroup Condition="('$(TargetFramework)' == 'net8.0')">
248
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[8,)" />
259
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="[8,)" />
2610
</ItemGroup>
2711
<PropertyGroup Condition="('$(TargetFramework)' == 'net8.0')">
2812
<DefineConstants>NET8_0</DefineConstants>
2913
</PropertyGroup>
30-
14+
3115
<ItemGroup Condition="('$(TargetFramework)' == 'net9.0')">
3216
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[9,)" />
3317
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="[9,)" />
3418
</ItemGroup>
3519
<PropertyGroup Condition="('$(TargetFramework)' == 'net9.0')">
3620
<DefineConstants>NET9_0</DefineConstants>
3721
</PropertyGroup>
22+
23+
<ItemGroup Condition="('$(TargetFramework)' == 'net10.0')">
24+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[10,)" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="[10,)" />
26+
</ItemGroup>
27+
<PropertyGroup Condition="('$(TargetFramework)' == 'net10.0')">
28+
<DefineConstants>NET10_0</DefineConstants>
29+
</PropertyGroup>
30+
3831
<ItemGroup>
39-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
32+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
4033
<PackageReference Include="Moq" Version="4.20.72" />
4134
<PackageReference Include="Moq.AutoMock" Version="3.5.0" />
4235
<PackageReference Include="xunit" Version="2.9.3" />
43-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.1">
36+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
4437
<PrivateAssets>all</PrivateAssets>
4538
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4639
</PackageReference>

EntityCloner.Microsoft.EntityFrameworkCore/EntityCloner.Microsoft.EntityFrameworkCore.csproj

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0;</TargetFrameworks>
3+
<TargetFrameworks>net10.0;net9.0;net8.0;</TargetFrameworks>
44
<Authors>Henk Kin</Authors>
55
<Company>Henk Kin</Company>
66
<PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -12,7 +12,7 @@
1212
<PackageTags>Clone DeepClone Entity Entities Include ThenInclude Core EntityFramework EF</PackageTags>
1313
<Description>Cloning entities using EntityFrameworkCore configuration</Description>
1414
<Copyright>Henk Kin</Copyright>
15-
<Version>9.1.0</Version>
15+
<Version>10.0.0</Version>
1616
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1717
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1818
<IncludeSymbols>true</IncludeSymbols>
@@ -28,20 +28,6 @@
2828
<None Include="../README.md" Pack="true" PackagePath="\" />
2929
</ItemGroup>
3030

31-
<ItemGroup Condition="('$(TargetFramework)' == 'net6.0')">
32-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[6,)" />
33-
</ItemGroup>
34-
<PropertyGroup Condition="('$(TargetFramework)' == 'net6.0')">
35-
<DefineConstants>NET6_0</DefineConstants>
36-
</PropertyGroup>
37-
38-
<ItemGroup Condition="('$(TargetFramework)' == 'net7.0')">
39-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[7,)" />
40-
</ItemGroup>
41-
<PropertyGroup Condition="('$(TargetFramework)' == 'net7.0')">
42-
<DefineConstants>NET7_0</DefineConstants>
43-
</PropertyGroup>
44-
4531
<ItemGroup Condition="('$(TargetFramework)' == 'net8.0')">
4632
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[8,)" />
4733
</ItemGroup>
@@ -55,6 +41,13 @@
5541
<PropertyGroup Condition="('$(TargetFramework)' == 'net9.0')">
5642
<DefineConstants>NET9_0</DefineConstants>
5743
</PropertyGroup>
44+
45+
<ItemGroup Condition="('$(TargetFramework)' == 'net10.0')">
46+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="[10,)" />
47+
</ItemGroup>
48+
<PropertyGroup Condition="('$(TargetFramework)' == 'net10.0')">
49+
<DefineConstants>NET10_0</DefineConstants>
50+
</PropertyGroup>
5851
<ItemGroup>
5952
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
6053
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ EntityCloner.Microsoft.EntityFrameworkCore
1010

1111
Cloning entities using EntityFrameworkCore configuration.
1212

13-
This library is Cross-platform, supporting `net6.0`, `net7.0`, `net8.0` and `net9.0`.
13+
This library is Cross-platform, supporting `net8.0`, `net9.0` and `net10.0`.
1414

1515

1616
## Installing EntityCloner.Microsoft.EntityFrameworkCore

appveyor.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
version: 9.0.{build}
1+
version: 10.0.{build}
22
image:
33
- Visual Studio 2022
44

5+
install:
6+
- ps: |
7+
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1"
8+
& $env:temp\dotnet-install.ps1 -Architecture x64 -Version '10.0.100' -InstallDir "$env:ProgramFiles\dotnet"
9+
before_build:
10+
- cmd: dotnet --version
11+
512
build_script:
6-
- cmd: dotnet build
13+
- cmd: dotnet build --configuration Release
14+
715
test_script:
8-
- cmd: dotnet test
16+
- cmd: dotnet test --configuration Release

0 commit comments

Comments
 (0)