Skip to content

Commit

Permalink
Add .NET 9 (#204) (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
rizi authored Nov 16, 2024
1 parent 4a7aae4 commit da5dbb0
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
6.0.x
7.0.x
8.0.x
9.0.x
- name: Build Projects
run: |
Expand All @@ -37,6 +38,7 @@ jobs:
dotnet build ./src/LinqKit.Microsoft.EntityFrameworkCore6/LinqKit.Microsoft.EntityFrameworkCore6.csproj -c ReleaseForGithubActions
dotnet build ./src/LinqKit.Microsoft.EntityFrameworkCore7/LinqKit.Microsoft.EntityFrameworkCored7.csproj -c ReleaseForGithubActions
dotnet build ./src/LinqKit.Microsoft.EntityFrameworkCore8/LinqKit.Microsoft.EntityFrameworkCored8.csproj -c ReleaseForGithubActions
dotnet build ./src/LinqKit.Microsoft.EntityFrameworkCore8/LinqKit.Microsoft.EntityFrameworkCored9.csproj -c ReleaseForGithubActions
dotnet build ./src/LinqKit.Z.EntityFramework.Classic/LinqKit.Z.EntityFramework.Classic.csproj -c ReleaseForGithubActions
- name: Run Tests
Expand All @@ -47,4 +49,5 @@ jobs:
dotnet test ./tests/LinqKit.Microsoft.EntityFrameworkCore5.Tests -c ReleaseForGithubActions
dotnet test ./tests/LinqKit.Microsoft.EntityFrameworkCore6.Tests -c ReleaseForGithubActions
dotnet test ./tests/LinqKit.Microsoft.EntityFrameworkCore7.Tests -c ReleaseForGithubActions
dotnet test ./tests/LinqKit.Microsoft.EntityFrameworkCore8.Tests -c ReleaseForGithubActions
dotnet test ./tests/LinqKit.Microsoft.EntityFrameworkCore8.Tests -c ReleaseForGithubActions
dotnet test ./tests/LinqKit.Microsoft.EntityFrameworkCore9.Tests -c ReleaseForGithubActions
19 changes: 19 additions & 0 deletions LinqKit Solution.sln
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LinqKit.Microsoft.EntityFra
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LinqKit.Microsoft.EntityFrameworkCore8.Tests", "tests\LinqKit.Microsoft.EntityFrameworkCore8.Tests\LinqKit.Microsoft.EntityFrameworkCore8.Tests.csproj", "{4052A1DE-FE04-4939-9602-172ED0F54D74}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LinqKit.Microsoft.EntityFrameworkCore9", "src\LinqKit.Microsoft.EntityFrameworkCore9\LinqKit.Microsoft.EntityFrameworkCore9.csproj", "{AC3816A2-410E-447D-9747-3368719F01C7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -704,6 +706,22 @@ Global
{4052A1DE-FE04-4939-9602-172ED0F54D74}.Release|x64.Build.0 = Release|Any CPU
{4052A1DE-FE04-4939-9602-172ED0F54D74}.Release|x86.ActiveCfg = Release|Any CPU
{4052A1DE-FE04-4939-9602-172ED0F54D74}.Release|x86.Build.0 = Release|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Debug|ARM.ActiveCfg = Debug|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Debug|ARM.Build.0 = Debug|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Debug|x64.ActiveCfg = Debug|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Debug|x64.Build.0 = Debug|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Debug|x86.ActiveCfg = Debug|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Debug|x86.Build.0 = Debug|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Release|Any CPU.Build.0 = Release|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Release|ARM.ActiveCfg = Release|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Release|ARM.Build.0 = Release|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Release|x64.ActiveCfg = Release|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Release|x64.Build.0 = Release|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Release|x86.ActiveCfg = Release|Any CPU
{AC3816A2-410E-447D-9747-3368719F01C7}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -747,6 +765,7 @@ Global
{B85B8655-37CC-4273-BCF6-7F96D5A25BC5} = {0BE21A11-8EF0-404B-AFC0-533A62386C4C}
{001EA7F4-182C-4D16-B876-23AE9633FD3E} = {2F7F283D-5576-417F-A467-EC210226AC3B}
{4052A1DE-FE04-4939-9602-172ED0F54D74} = {0BE21A11-8EF0-404B-AFC0-533A62386C4C}
{AC3816A2-410E-447D-9747-3368719F01C7} = {2F7F283D-5576-417F-A467-EC210226AC3B}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8F6283C5-9029-434E-BD90-E95FB377DA9B}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
| LinqKit.Microsoft.EntityFrameworkCore 6 | [![Nuget](https://img.shields.io/badge/nuget-v6.1.5-blue) ![Nuget](https://img.shields.io/nuget/dt/LinqKit.Microsoft.EntityFrameworkCore)](https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore/6.1.0) | Microsoft.EntityFrameworkCore<ul><li>≥ 6.0.0</li></ul> | <ul><li>net6.0</li></ul>|
| LinqKit.Microsoft.EntityFrameworkCore 7 | [![Nuget](https://img.shields.io/badge/nuget-v7.1.5-blue) ![Nuget](https://img.shields.io/nuget/dt/LinqKit.Microsoft.EntityFrameworkCore)](https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore/7.0.0) | Microsoft.EntityFrameworkCore<ul><li>≥ 7.0.0</li></ul> | <ul><li>net6.0</li><li>net7.0</li></ul>|
| LinqKit.Microsoft.EntityFrameworkCore 8 | [![Nuget](https://img.shields.io/badge/nuget-v8.1.5-blue) ![Nuget](https://img.shields.io/nuget/dt/LinqKit.Microsoft.EntityFrameworkCore)](https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore/8.0.0) | Microsoft.EntityFrameworkCore<ul><li>≥ 8.0.0</li></ul> | <ul><li>net8.0</li></ul>|
| LinqKit.Microsoft.EntityFrameworkCore 9 | [![Nuget](https://img.shields.io/badge/nuget-v8.1.5-blue) ![Nuget](https://img.shields.io/nuget/dt/LinqKit.Microsoft.EntityFrameworkCore)](https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore/9.1.5) | Microsoft.EntityFrameworkCore<ul><li>≥ 9.0.0</li></ul> | <ul><li>net9.0</li></ul>|
| LinqKit.Z.EntityFramework.Classic | [![Nuget](https://img.shields.io/nuget/v/LinqKit.Z.EntityFramework.Classic) ![Nuget](https://img.shields.io/nuget/dt/LinqKit.Z.EntityFramework.Classic)](https://www.nuget.org/packages/LinqKit.Z.EntityFramework.Classic) | Z.EntityFramework.Classic<ul><li>≥ 7.0.40</li></ul> | <ul><li>net40</li><li>net45</li><li>netstandard2.0</li></ul>|


Expand Down
5 changes: 5 additions & 0 deletions src/LinqKit.Core/LinqKit.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@
LinqKit.Microsoft.EntityFrameworkCore8, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f77c6bb1a3b2c5b07d843b1c9b845dffcce043e3711d17877ed730ad2e53983b3ed7c1346673cc9d3953a430334fa3c8ce73430ef58a930de917f6d34251a145f4f267d535ea2f797e717d7ce9684711888cc788cf71b4c03b531f52a88ab70e52b6e1fb783f0ef8b0c6afe55b573bf3f4982088325448aef8f3b1fea5d5a7c8
</_Parameter1>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>
LinqKit.Microsoft.EntityFrameworkCore9, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f77c6bb1a3b2c5b07d843b1c9b845dffcce043e3711d17877ed730ad2e53983b3ed7c1346673cc9d3953a430334fa3c8ce73430ef58a930de917f6d34251a145f4f267d535ea2f797e717d7ce9684711888cc788cf71b4c03b531f52a88ab70e52b6e1fb783f0ef8b0c6afe55b573bf3f4982088325448aef8f3b1fea5d5a7c8
</_Parameter1>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>
LinqKit.Net35, PublicKey=002400000480000094000000060200000024000052534131000400000100010009af226acf80fc92af220b3e8080830297eeb9711ca1d8cf2a567c211dfdae8bd2fd7e37777b3d0368e8b6c4ed7252ad4f19f3eb38a3f26a0bbc7016d064bf0a111a40058e97239c11d8c2cdc1e93367f862a5e0166253463f90adba77c183cc8334d07198b8e80c69022f9bc6b260de3b1753c33b587e8c51175e1f6a1152d2
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../version.xml" />

<PropertyGroup>
<Version>9.0.$(PatchVersion)</Version>
<DefineConstants>$(DefineConstants);EFCORE;EFCORE3;EFCORE5;EFCORE6;EFCORE7</DefineConstants>
<Description>LinqKit.Microsoft.EntityFrameworkCore contains extensions for LINQ to SQL and EntityFrameworkCore. With Include(...) and IDbAsync support.</Description>
<AssemblyTitle>LinqKit for Microsoft.EntityFrameworkCore with Include(...) and IAsync support.</AssemblyTitle>
<Authors>Joseph Albahari;Tomas Petricek;Scott Smith;Tuomas Hietanen;Stef Heyenrath</Authors>
<TargetFrameworks>net9.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>LinqKit.Microsoft.EntityFrameworkCore</AssemblyName>
<AssemblyOriginatorKeyFile>../LinqKit.Microsoft.EntityFrameworkCore/LinqKit.Microsoft.EntityFrameworkCore.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageId>LinqKit.Microsoft.EntityFrameworkCore</PackageId>
<PackageTags>linq;EF;EntityFramework;Entity;Framework;Core;EntityFrameworkCore</PackageTags>
<PackageProjectUrl>https://github.com/scottksmith95/LINQKit</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/scottksmith95/LINQKit</RepositoryUrl>
<RootNamespace>LinqKit</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' or '$(Configuration)' == 'ReleaseForGithubActions' ">
<PathMap>$(MSBuildProjectDirectory)=/</PathMap>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\LinqKit.Core\Extensions.cs;..\LinqKit.Core\ExpandableQuery.cs" />
<Compile Include="..\LinqKit.Microsoft.EntityFrameworkCore\*.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2022.1.0">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0" />
<PackageReference Include="Timestamp" Version="1.0.2">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\LinqKit.Core\LinqKit.Core.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Authors>Stef Heyenrath</Authors>
<TargetFramework>net9.0</TargetFramework>
<AssemblyName>LinqKit.Microsoft.EntityFrameworkCore9.Tests</AssemblyName>
<PackageId>LinqKit.Microsoft.EntityFrameworkCore9.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\LinqKit.Microsoft.EntityFrameworkCore9\LinqKit.Microsoft.EntityFrameworkCore9.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\LinqKit.Microsoft.EntityFrameworkCore.TestFiles\**">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Compile>
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="Moq" Version="4.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LinqKit.Microsoft.EntityFrameworkCore.Tests")]
[assembly: AssemblyTrademark("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("caf01996-2e96-4350-ac5d-79da471d1a31")]

0 comments on commit da5dbb0

Please sign in to comment.