Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,32 @@ jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '6.0.x', '7.0.x', '8.0.x' ]

env:
working-directory: ./Dapper.CustomTypeHandlers

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup dotnet ${{ matrix.dotnet-version }}
- name: Setup .NET 7.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x

- name: Setup .NET 8.0.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}

dotnet-version: 8.0.x

- name: List installed .NET SDKs
run: dotnet --list-sdks

- name: Display dotnet version
run: dotnet --version

- name: Restore dependencies
run: dotnet restore
working-directory: ${{env.working-directory}}

- name: Build the project
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release
working-directory: ${{env.working-directory}}

- name: Run test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="FluentAssertions" Version="6.12.1" />
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.10" />
<PackageReference Include="Dapper" Version="2.1.66" />
<PackageReference Include="FluentAssertions" Version="8.0.1" />
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.12" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="nunit" Version="4.2.2" />
<PackageReference Include="nunit" Version="4.3.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<Title>Dapper.CustomTypeHandlers</Title>
<Description>Dapper custom type handlers to serialize/deserialize objects to Xml and Json.</Description>
<PackageTags>dapper orm xml json database sql customhandlers</PackageTags>
Expand All @@ -22,7 +22,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="Dapper" Version="2.1.66" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public object Parse(Type destinationType, object value)

try
{
return JsonSerializer.Deserialize(value.ToString(), destinationType, _options);
return JsonSerializer.Deserialize(value.ToString()!, destinationType, _options);
}
catch (Exception e)
{
Expand Down