Skip to content

Commit 3e999a6

Browse files
Update the Project to dot net 8 (#82)
* Update the Project to dot net 8 * hard code the latest EF version * upgrade actions * Update for .net 9 SDK --------- Co-authored-by: Lucian Bargaoanu <[email protected]>
1 parent 1f5aa34 commit 3e999a6

File tree

5 files changed

+14
-42
lines changed

5 files changed

+14
-42
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,9 @@ jobs:
1414
runs-on: windows-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20-
- name: Setup .NET Core 3.1
21-
uses: actions/setup-dotnet@v1
22-
with:
23-
dotnet-version: 3.1.x
24-
- name: Setup .NET Core 6
25-
uses: actions/setup-dotnet@v1
26-
with:
27-
dotnet-version: '6.x'
28-
include-prerelease: true
29-
- name: Dotnet info
30-
run: dotnet --info
31-
shell: pwsh
3220
- name: Build and Test
3321
run: ./Build.ps1
3422
shell: pwsh
@@ -39,8 +27,8 @@ jobs:
3927
run: ./Push.ps1
4028
shell: pwsh
4129
- name: Artifacts
42-
uses: actions/upload-artifact@v2
30+
uses: actions/upload-artifact@v4
4331
if: always()
4432
with:
4533
name: artifacts
46-
path: artifacts/**/*
34+
path: artifacts/**/*

.github/workflows/release.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,9 @@ jobs:
1111
runs-on: windows-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
17-
- name: Setup .NET Core 3.1
18-
uses: actions/setup-dotnet@v1
19-
with:
20-
dotnet-version: 3.1.x
21-
- name: Setup .NET Core 6
22-
uses: actions/setup-dotnet@v1
23-
with:
24-
dotnet-version: '6.x'
25-
include-prerelease: true
26-
- name: Dotnet info
27-
run: dotnet --info
28-
shell: pwsh
2917
- name: Build and Test
3018
run: ./Build.ps1
3119
shell: pwsh
@@ -42,7 +30,7 @@ jobs:
4230
run: ./Push.ps1
4331
shell: pwsh
4432
- name: Artifacts
45-
uses: actions/upload-artifact@v2
33+
uses: actions/upload-artifact@v4
4634
with:
4735
name: artifacts
4836
path: artifacts/**/*

build.ps1

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ $artifacts = ".\artifacts"
2626

2727
if(Test-Path $artifacts) { Remove-Item $artifacts -Force -Recurse }
2828

29-
exec { & dotnet clean -c Release }
29+
exec { & dotnet test -c Release --results-directory $artifacts -l trx }
3030

31-
exec { & dotnet build -c Release }
32-
33-
exec { & dotnet test -c Release -r $artifacts --no-build -l trx --verbosity=normal }
34-
35-
exec { & dotnet pack .\AutoMapper.Collection.EFCore.sln -c Release -o $artifacts --no-build }
31+
exec { & dotnet pack .\src\AutoMapper.Collection.EntityFrameworkCore\AutoMapper.Collection.EntityFrameworkCore.csproj -c Release -o $artifacts --no-build }

src/AutoMapper.Collection.EntityFrameworkCore.Tests/AutoMapper.Collection.EntityFrameworkCore.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
55
<AssemblyName>AutoMapper.Collection.EntityFrameworkCore.Tests</AssemblyName>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
@@ -11,8 +11,8 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="AutoMapper" Version="13.0.1" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.0" />
14+
<PackageReference Include="AutoMapper" Version="14.0.0" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.2" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/AutoMapper.Collection.EntityFrameworkCore/AutoMapper.Collection.EntityFrameworkCore.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<Description>Collection updating support for EntityFrameworkCore with AutoMapper. Extends DBSet&lt;T&gt; with Persist&lt;TDto&gt;().InsertUpdate(dto) and Persist&lt;TDto&gt;().Delete(dto). Will find the matching object and will Insert/Update/Delete.</Description>
55
<Authors>Tyler Carlson</Authors>
6-
<TargetFrameworks>net6.0</TargetFrameworks>
6+
<TargetFrameworks>net8.0</TargetFrameworks>
77
<AssemblyName>AutoMapper.Collection.EntityFrameworkCore</AssemblyName>
88
<PackageId>AutoMapper.Collection.EntityFrameworkCore</PackageId>
99
<PackageIcon>icon.png</PackageIcon>
@@ -24,9 +24,9 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="AutoMapper.Collection" Version="[10.0.0,11.0.0)" />
28-
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="[7.0.0,8.0.0)" />
29-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.0" />
27+
<PackageReference Include="AutoMapper.Collection" Version="[11.0.0,12.0.0)" />
28+
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="[8.0.0,9.0.0)" />
29+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.2" />
3030
</ItemGroup>
3131

3232
<ItemGroup>

0 commit comments

Comments
 (0)