Skip to content

Commit 498b960

Browse files
KryptoBeardBlaiseD
andauthored
.net 8 support (#203)
* upgrading to .net 8 * .NET 8.0 for sample and test projects. --------- Co-authored-by: Blaise Taylor <[email protected]>
1 parent 68ff04d commit 498b960

File tree

10 files changed

+26
-18
lines changed

10 files changed

+26
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup .NET Core
2020
uses: actions/setup-dotnet@v1
2121
with:
22-
dotnet-version: 7.0.203
22+
dotnet-version: 8.x
2323

2424
- name: Set Variables
2525
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup .NET Core
1818
uses: actions/setup-dotnet@v1
1919
with:
20-
dotnet-version: 7.0.203
20+
dotnet-version: 8.x
2121

2222
- name: Set Variables
2323
run: |

AutoMapper.AspNetCore.OData.EF6/AutoMapper.AspNetCore.OData.EF6.csproj

Lines changed: 2 additions & 2 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;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<RootNamespace>AutoMapper.AspNet.OData</RootNamespace>
66
<PackageId>AutoMapper.AspNetCore.OData.EF6</PackageId>
77
<Description>Creates LINQ expressions from ODataQueryOptions and executes the query.</Description>
@@ -57,7 +57,7 @@
5757
<ItemGroup>
5858
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="[6.0.4,7.0.0)" />
5959
<PackageReference Include="EntityFramework" Version="6.3.0" />
60-
<PackageReference Include="LogicBuilder.Expressions.Utils" Version="[5.0.10,6.0.0)" />
60+
<PackageReference Include="LogicBuilder.Expressions.Utils" Version="[6.0.0,7.0.0)" />
6161
<PackageReference Include="Microsoft.AspNetCore.OData" Version="8.0.6" />
6262
<PackageReference Include="MinVer" Version="2.5.0">
6363
<PrivateAssets>all</PrivateAssets>

AutoMapper.AspNetCore.OData.EFCore/AutoMapper.AspNetCore.OData.EFCore.csproj

Lines changed: 6 additions & 2 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;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<RootNamespace>AutoMapper.AspNet.OData</RootNamespace>
66
<PackageId>AutoMapper.AspNetCore.OData.EFCore</PackageId>
77
<Description>Creates LINQ expressions from ODataQueryOptions and executes the query.</Description>
@@ -29,7 +29,7 @@
2929

3030
<ItemGroup>
3131
<PackageReference Include="AutoMapper.Extensions.ExpressionMapping" Version="[6.0.4,7.0.0)" />
32-
<PackageReference Include="LogicBuilder.Expressions.Utils" Version="[5.0.10,6.0.0)" />
32+
<PackageReference Include="LogicBuilder.Expressions.Utils" Version="[6.0.0,7.0.0)" />
3333
<PackageReference Include="Microsoft.AspNetCore.OData" Version="8.0.6" />
3434
<PackageReference Include="MinVer" Version="2.5.0">
3535
<PrivateAssets>all</PrivateAssets>
@@ -45,6 +45,10 @@
4545
<ItemGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
4646
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.0" />
4747
</ItemGroup>
48+
49+
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
50+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
51+
</ItemGroup>
4852

4953
<ItemGroup>
5054
<FrameworkReference Include="Microsoft.AspNetCore.App" />

AutoMapper.OData.EF6.Tests/AutoMapper.OData.EF6.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

AutoMapper.OData.EFCore.Tests/AutoMapper.OData.EFCore.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55

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

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.0" />
10+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.0" />
1111
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
1212
<PackageReference Include="xunit" Version="2.4.1" />
1313
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">

DAL.EFCore/DAL.EFCore.csproj

Lines changed: 5 additions & 1 deletion
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;net7.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
@@ -12,4 +12,8 @@
1212
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.0" />
1313
</ItemGroup>
1414

15+
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
16+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
17+
</ItemGroup>
18+
1519
</Project>

ExpressionBuilder.Tests/ExpressionBuilder.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

MigrationTool/MigrationTool.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.0">
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0">
1010
<PrivateAssets>all</PrivateAssets>
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1212
</PackageReference>
13-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
13+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

SeedDatabase/SeedDatabase.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
10-
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="7.0.0" />
11-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
10+
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.0" />
11+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

0 commit comments

Comments
 (0)