Skip to content

Commit d03e5f4

Browse files
authored
Merge pull request #25 from kubagdynia/develop
Develop
2 parents 0033e4d + 3dfb869 commit d03e5f4

File tree

4 files changed

+40
-13
lines changed

4 files changed

+40
-13
lines changed

.github/workflows/dotnet.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
with:
3636
dotnet-version: 8.0.x
3737

38+
- name: Setup .NET 9.0.x
39+
uses: actions/setup-dotnet@v4
40+
with:
41+
dotnet-version: 9.0.x
42+
3843
- name: List installed .NET SDKs
3944
run: dotnet --list-sdks
4045

.github/workflows/publish.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,26 @@ jobs:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
1919

20-
- name: Setup .NET
20+
- name: Setup .NET 7.0.x
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: 7.0.x
24+
25+
- name: Setup .NET 8.0.x
2126
uses: actions/setup-dotnet@v4
2227
with:
2328
dotnet-version: 8.0.x
29+
30+
- name: Setup .NET 9.0.x
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: 9.0.x
2434

25-
- name: Display dotnet version
26-
run: dotnet --version
27-
28-
- name: Restore dependencies
29-
run: dotnet restore
30-
working-directory: ${{env.working-directory}}
35+
- name: List installed .NET SDKs
36+
run: dotnet --list-sdks
3137

3238
- name: Build the project
33-
run: dotnet build --configuration Release --no-restore
39+
run: dotnet build --configuration Release
3440
working-directory: ${{env.working-directory}}
3541

3642
- name: Run tests

Dapper.CustomTypeHandlers/Dapper.CustomTypeHandlers.Tests/Dapper.CustomTypeHandlers.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0;net8.0;net9.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>
88
<PackageReference Include="Dapper" Version="2.1.66" />
99
<PackageReference Include="FluentAssertions" Version="8.0.1" />
10-
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.12" />
11-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
1210
<PackageReference Include="nunit" Version="4.3.2" />
1311
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
1412
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1513
</ItemGroup>
14+
15+
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
16+
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.12" />
17+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
18+
</ItemGroup>
19+
20+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net9.0'">
21+
<PackageReference Include="Microsoft.Data.SQLite" Version="9.0.1" />
22+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.1" />
23+
</ItemGroup>
1624

1725
<ItemGroup>
1826
<ProjectReference Include="..\Dapper.CustomTypeHandlers\Dapper.CustomTypeHandlers.csproj" />

Dapper.CustomTypeHandlers/Dapper.CustomTypeHandlers/Dapper.CustomTypeHandlers.csproj

Lines changed: 10 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>net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0;net8.0;net9.0</TargetFrameworks>
55
<Title>Dapper.CustomTypeHandlers</Title>
66
<Description>Dapper custom type handlers to serialize/deserialize objects to Xml and Json.</Description>
77
<PackageTags>dapper orm xml json database sql customhandlers</PackageTags>
@@ -23,8 +23,16 @@
2323

2424
<ItemGroup>
2525
<PackageReference Include="Dapper" Version="2.1.66" />
26+
</ItemGroup>
27+
28+
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
2629
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
27-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
30+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
31+
</ItemGroup>
32+
33+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net9.0'">
34+
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.1" />
35+
<PackageReference Include="System.Text.Json" Version="9.0.1" />
2836
</ItemGroup>
2937

3038
<ItemGroup>

0 commit comments

Comments
 (0)