Skip to content

Commit 0033e4d

Browse files
authored
Merge pull request #24 from kubagdynia/develop
Update libraries
2 parents 711ca0f + 586c9c4 commit 0033e4d

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

.github/workflows/dotnet.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,32 @@ jobs:
1717
build:
1818

1919
runs-on: ubuntu-latest
20-
strategy:
21-
matrix:
22-
dotnet-version: [ '6.0.x', '7.0.x', '8.0.x' ]
20+
2321
env:
2422
working-directory: ./Dapper.CustomTypeHandlers
2523

2624
steps:
2725
- name: Checkout code
2826
uses: actions/checkout@v4
2927

30-
- name: Setup dotnet ${{ matrix.dotnet-version }}
28+
- name: Setup .NET 7.0.x
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: 7.0.x
32+
33+
- name: Setup .NET 8.0.x
3134
uses: actions/setup-dotnet@v4
3235
with:
33-
dotnet-version: ${{ matrix.dotnet-version }}
34-
36+
dotnet-version: 8.0.x
37+
38+
- name: List installed .NET SDKs
39+
run: dotnet --list-sdks
40+
3541
- name: Display dotnet version
3642
run: dotnet --version
37-
38-
- name: Restore dependencies
39-
run: dotnet restore
40-
working-directory: ${{env.working-directory}}
4143

4244
- name: Build the project
43-
run: dotnet build --configuration Release --no-restore
45+
run: dotnet build --configuration Release
4446
working-directory: ${{env.working-directory}}
4547

4648
- name: Run test

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

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

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

77
<ItemGroup>
8-
<PackageReference Include="Dapper" Version="2.1.35" />
9-
<PackageReference Include="FluentAssertions" Version="6.12.1" />
10-
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.10" />
8+
<PackageReference Include="Dapper" Version="2.1.66" />
9+
<PackageReference Include="FluentAssertions" Version="8.0.1" />
10+
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.12" />
1111
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
12-
<PackageReference Include="nunit" Version="4.2.2" />
12+
<PackageReference Include="nunit" Version="4.3.2" />
1313
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

Dapper.CustomTypeHandlers/Dapper.CustomTypeHandlers/Dapper.CustomTypeHandlers.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;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0;net8.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>
@@ -22,7 +22,7 @@
2222
</PropertyGroup>
2323

2424
<ItemGroup>
25-
<PackageReference Include="Dapper" Version="2.1.35" />
25+
<PackageReference Include="Dapper" Version="2.1.66" />
2626
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
2727
<PackageReference Include="System.Text.Json" Version="8.0.5" />
2828
</ItemGroup>

Dapper.CustomTypeHandlers/Dapper.CustomTypeHandlers/TypeHandlers/JsonObjectTypeHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public object Parse(Type destinationType, object value)
2323

2424
try
2525
{
26-
return JsonSerializer.Deserialize(value.ToString(), destinationType, _options);
26+
return JsonSerializer.Deserialize(value.ToString()!, destinationType, _options);
2727
}
2828
catch (Exception e)
2929
{

0 commit comments

Comments
 (0)