diff --git a/.github/workflows/dotnet-format-action.yml b/.github/workflows/dotnet-format-action.yml index b20e59d..5b3a85f 100644 --- a/.github/workflows/dotnet-format-action.yml +++ b/.github/workflows/dotnet-format-action.yml @@ -24,13 +24,13 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} action: "fix" - workspace: "./src/CSharp/EasyMicroservices.Serialization.sln" + workspace: "./src/CSharp/EasyMicroservices.Serialization-net6.0.sln" - name: Test - run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln + run: dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln - name: Test to generate Code Coverage Report working-directory: ./src/CSharp run: | - dotnet build ./EasyMicroservices.Serialization.sln + dotnet build ./EasyMicroservices.Serialization-net6.0.sln dotnet tool install --global coverlet.console coverlet EasyMicroservices.Serialization.Tests/bin/Debug/net6.0/EasyMicroservices.Serialization.Tests.dll --target "dotnet" --targetargs "test EasyMicroservices.Serialization.Tests/bin/Debug/net6.0/EasyMicroservices.Serialization.Tests.dll --no-build" -f opencover - name: OpenCover Badge Generator diff --git a/.github/workflows/dotnet-linux.yml b/.github/workflows/dotnet-linux.yml index f9094b5..5439244 100644 --- a/.github/workflows/dotnet-linux.yml +++ b/.github/workflows/dotnet-linux.yml @@ -21,8 +21,14 @@ jobs: 7.0.x 8.0.x - name: Restore dependencies - run: dotnet restore ./src/CSharp/EasyMicroservices.Serialization.sln + run: | + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln - name: Build - run: dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore + run: | + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore - name: Test - run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity diag + run: | + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build --verbosity normal + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build --verbosity normal diff --git a/.github/workflows/dotnet-macos.yml b/.github/workflows/dotnet-macos.yml index 282c82e..4018b01 100644 --- a/.github/workflows/dotnet-macos.yml +++ b/.github/workflows/dotnet-macos.yml @@ -21,8 +21,14 @@ jobs: 7.0.x 8.0.x - name: Restore dependencies - run: dotnet restore ./src/CSharp/EasyMicroservices.Serialization.sln + run: | + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln - name: Build - run: dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore + run: | + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore - name: Test - run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity diag + run: | + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build --verbosity normal + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build --verbosity normal diff --git a/.github/workflows/dotnet-windows.yml b/.github/workflows/dotnet-windows.yml index 527f8f7..17dc146 100644 --- a/.github/workflows/dotnet-windows.yml +++ b/.github/workflows/dotnet-windows.yml @@ -25,4 +25,4 @@ jobs: - name: Build run: dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore - name: Test - run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity diag + run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity normal diff --git a/.github/workflows/nuget-push-public.yml b/.github/workflows/nuget-push-public.yml index ba5c728..ab34c41 100644 --- a/.github/workflows/nuget-push-public.yml +++ b/.github/workflows/nuget-push-public.yml @@ -18,11 +18,20 @@ jobs: env: DOTNET_INSTALL_DIR: /usr/share/dotnet - name: Restore dependencies - run: dotnet restore ./src/CSharp/EasyMicroservices.Serialization.sln + run: | + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln - name: Build - run: dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore + run: | + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-restore - name: Test - run: dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build --verbosity diag + run: | + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build --verbosity normal + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build --verbosity normal + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-build --verbosity normal - name: Create the package run: dotnet pack ./src/CSharp/EasyMicroservices.Serialization.sln --output nupkgs - name: Publish the package to NuGet.org diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a8e2c9..3979660 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,15 @@ jobs: DOTNET_INSTALL_DIR: /usr/share/dotnet - name: build and test run: | - dotnet restore ./src/CSharp/EasyMicroservices.Serialization.sln - dotnet build ./src/CSharp/EasyMicroservices.Serialization.sln --no-restore - dotnet test ./src/CSharp/EasyMicroservices.Serialization.sln --no-build + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln + dotnet restore ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-restore + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-restore + dotnet build ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-restore + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net6.0.sln --no-build + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net7.0.sln --no-build + dotnet test ./src/CSharp/EasyMicroservices.Serialization-net8.0.sln --no-build - name: setup semantic-release run: | npm install -D semantic-release diff --git a/src/CSharp/EasyMicroservices.Serialization.BinaryGo/BinaryGoExtensions.cs b/src/CSharp/EasyMicroservices.Serialization.BinaryGo/BinaryGoExtensions.cs index 547e0f0..cd43c40 100644 --- a/src/CSharp/EasyMicroservices.Serialization.BinaryGo/BinaryGoExtensions.cs +++ b/src/CSharp/EasyMicroservices.Serialization.BinaryGo/BinaryGoExtensions.cs @@ -2,8 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; -using EasyMicroservices.Serialization.Options; using EasyMicroservices.Serialization.BinaryGo.Providers; +using EasyMicroservices.Serialization.Options; namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/CSharp/EasyMicroservices.Serialization.MemoryPack/MemoryPackExtensions.cs b/src/CSharp/EasyMicroservices.Serialization.MemoryPack/MemoryPackExtensions.cs index 262b122..7ffffc2 100644 --- a/src/CSharp/EasyMicroservices.Serialization.MemoryPack/MemoryPackExtensions.cs +++ b/src/CSharp/EasyMicroservices.Serialization.MemoryPack/MemoryPackExtensions.cs @@ -1,6 +1,6 @@ using System; -using EasyMicroservices.Serialization.Options; using EasyMicroservices.Serialization.MemoryPack.Providers; +using EasyMicroservices.Serialization.Options; namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/CSharp/EasyMicroservices.Serialization.MessagePack/MessagePackExtensions.cs b/src/CSharp/EasyMicroservices.Serialization.MessagePack/MessagePackExtensions.cs index e5ff4fa..b37e363 100644 --- a/src/CSharp/EasyMicroservices.Serialization.MessagePack/MessagePackExtensions.cs +++ b/src/CSharp/EasyMicroservices.Serialization.MessagePack/MessagePackExtensions.cs @@ -1,6 +1,6 @@ using System; -using EasyMicroservices.Serialization.Options; using EasyMicroservices.Serialization.MessagePack.Providers; +using EasyMicroservices.Serialization.Options; namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/CSharp/EasyMicroservices.Serialization.NewtonSoft.Json/NewtonsoftJsonExtensions.cs b/src/CSharp/EasyMicroservices.Serialization.NewtonSoft.Json/NewtonsoftJsonExtensions.cs index 4d51959..e2cc10f 100644 --- a/src/CSharp/EasyMicroservices.Serialization.NewtonSoft.Json/NewtonsoftJsonExtensions.cs +++ b/src/CSharp/EasyMicroservices.Serialization.NewtonSoft.Json/NewtonsoftJsonExtensions.cs @@ -1,6 +1,6 @@ using System; -using EasyMicroservices.Serialization.Options; using EasyMicroservices.Serialization.Newtonsoft.Json.Providers; +using EasyMicroservices.Serialization.Options; namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/CSharp/EasyMicroservices.Serialization.Tests/EasyMicroservices.Serialization.Tests.csproj b/src/CSharp/EasyMicroservices.Serialization.Tests/EasyMicroservices.Serialization.Tests.csproj index d7183b5..76c5e25 100644 --- a/src/CSharp/EasyMicroservices.Serialization.Tests/EasyMicroservices.Serialization.Tests.csproj +++ b/src/CSharp/EasyMicroservices.Serialization.Tests/EasyMicroservices.Serialization.Tests.csproj @@ -8,7 +8,7 @@ - net6.0;net48;net452;net8.0;net7.0;net8.0 + net6.0;net48;net452;net8.0;net7.0 diff --git a/src/CSharp/coverage-badge-line.svg b/src/CSharp/coverage-badge-line.svg index a63b82b..45a8e24 100644 --- a/src/CSharp/coverage-badge-line.svg +++ b/src/CSharp/coverage-badge-line.svg @@ -1 +1 @@ - coverage: linecoverage: line58.41%58.41% \ No newline at end of file + coverage: linecoverage: line35.11%35.11% \ No newline at end of file diff --git a/src/CSharp/coverage.opencover.xml b/src/CSharp/coverage.opencover.xml new file mode 100644 index 0000000..2d1ccf9 --- /dev/null +++ b/src/CSharp/coverage.opencover.xml @@ -0,0 +1,775 @@ + + + + + + EasyMicroservices.Serialization.System.Text.Json.dll + 2023-12-11T05:53:23 + EasyMicroservices.Serialization.System.Text.Json + + + + + + + + + Microsoft.Extensions.DependencyInjection.SystemTextJsonExtensions + + + + + EasyMicroservices.Serialization.Options.SerializationOption Microsoft.Extensions.DependencyInjection.SystemTextJsonExtensions::UseSystemTextJson(EasyMicroservices.Serialization.Options.SerializationOption) + + + + + + + + + + + + + + + EasyMicroservices.Serialization.Options.SerializationOption Microsoft.Extensions.DependencyInjection.SystemTextJsonExtensions::UseSystemTextJsonBinary(EasyMicroservices.Serialization.Options.SerializationOption) + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonBinaryProvider + + + + + T EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonBinaryProvider::Deserialize(System.ReadOnlySpan`1<System.Byte>) + + + + + + + + + + + + + System.ReadOnlySpan`1<System.Byte> EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonBinaryProvider::Serialize(T) + + + + + + + + + + + + + System.Void EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonBinaryProvider::.ctor(System.Text.Json.JsonSerializerOptions) + + + + + + + + + + + + + + System.Void EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonBinaryProvider::.ctor() + + + + + + + + + + + + + + EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonProvider + + + + + T EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonProvider::Deserialize(System.String) + + + + + + + + + + + + + System.String EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonProvider::Serialize(T) + + + + + + + + + + + + + System.Void EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonProvider::.ctor(System.Text.Json.JsonSerializerOptions) + + + + + + + + + + + + + + System.Void EasyMicroservices.Serialization.System.Text.Json.Providers.SystemTextJsonProvider::.ctor() + + + + + + + + + + + + + + + EasyMicroservices.Serialization.BinaryGo.dll + 2023-12-11T05:53:23 + EasyMicroservices.Serialization.BinaryGo + + + + + + + + EasyMicroservices.Serialization.BinaryGo.Providers.BinaryGoProvider + + + + + T EasyMicroservices.Serialization.BinaryGo.Providers.BinaryGoProvider::Deserialize(System.ReadOnlySpan`1<System.Byte>) + + + + + + + + + + + + + + + System.ReadOnlySpan`1<System.Byte> EasyMicroservices.Serialization.BinaryGo.Providers.BinaryGoProvider::Serialize(T) + + + + + + + + + + + + + + + + Microsoft.Extensions.DependencyInjection.BinaryGoExtensions + + + + + EasyMicroservices.Serialization.Options.SerializationOption Microsoft.Extensions.DependencyInjection.BinaryGoExtensions::UseBinaryGo(EasyMicroservices.Serialization.Options.SerializationOption) + + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.Newtonsoft.Json.dll + 2023-12-11T05:53:23 + EasyMicroservices.Serialization.Newtonsoft.Json + + + + + + + + EasyMicroservices.Serialization.Newtonsoft.Json.Providers.NewtonsoftJsonProvider + + + + + T EasyMicroservices.Serialization.Newtonsoft.Json.Providers.NewtonsoftJsonProvider::Deserialize(System.String) + + + + + + + + + + + + + System.String EasyMicroservices.Serialization.Newtonsoft.Json.Providers.NewtonsoftJsonProvider::Serialize(T) + + + + + + + + + + + + + System.Void EasyMicroservices.Serialization.Newtonsoft.Json.Providers.NewtonsoftJsonProvider::.ctor(Newtonsoft.Json.JsonSerializerSettings) + + + + + + + + + + + + + + System.Void EasyMicroservices.Serialization.Newtonsoft.Json.Providers.NewtonsoftJsonProvider::.ctor() + + + + + + + + + + + + + + Microsoft.Extensions.DependencyInjection.NewtonsoftJsonExtensions + + + + + EasyMicroservices.Serialization.Options.SerializationOption Microsoft.Extensions.DependencyInjection.NewtonsoftJsonExtensions::UseNewtonsoftJson(EasyMicroservices.Serialization.Options.SerializationOption) + + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.dll + 2023-12-11T05:53:23 + EasyMicroservices.Serialization + + + + + + + + + + EasyMicroservices.Serialization.Providers.BaseProvider + + + + + System.Boolean EasyMicroservices.Serialization.Providers.BaseProvider::CanConvert(System.Type) + + + + + + + + + + + + + System.Collections.Generic.Dictionary`2<System.Type,System.Type> EasyMicroservices.Serialization.Providers.BaseProvider::get_ReplacedWithARuntimeType() + + + + + + + + + + + System.Type EasyMicroservices.Serialization.Providers.BaseProvider::GetReplacedType(System.Type) + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.Boolean EasyMicroservices.Serialization.Providers.BaseProvider::CanReplaceType(System.Type) + + + + + + + + + + + + + System.Type EasyMicroservices.Serialization.Providers.BaseProvider::ReplaceType(System.Type) + + + + + + + + + + + + + + EasyMicroservices.Serialization.Providers.BinarySerializationBaseProvider + + + + + System.ReadOnlySpan`1<System.Byte> EasyMicroservices.Serialization.Providers.BinarySerializationBaseProvider::SerializeToBytes(T) + + + + + + + + + + + + + T EasyMicroservices.Serialization.Providers.BinarySerializationBaseProvider::DeserializeFromBytes(System.ReadOnlySpan`1<System.Byte>) + + + + + + + + + + + + + + EasyMicroservices.Serialization.Providers.TextSerializationBaseProvider + + + + + System.ReadOnlySpan`1<System.Byte> EasyMicroservices.Serialization.Providers.TextSerializationBaseProvider::SerializeToBytes(T) + + + + + + + + + + + + + T EasyMicroservices.Serialization.Providers.TextSerializationBaseProvider::DeserializeFromBytes(System.ReadOnlySpan`1<System.Byte>) + + + + + + + + + + + + + + EasyMicroservices.Serialization.Options.SerializationOptionBuilder + + + + + System.Void EasyMicroservices.Serialization.Options.SerializationOptionBuilder::UseTextSerialization(System.Func`1<EasyMicroservices.Serialization.Interfaces.ITextSerializationProvider>) + + + + + + + + + + + + + + + + + + System.Void EasyMicroservices.Serialization.Options.SerializationOptionBuilder::UseBinarySerialization(System.Func`1<EasyMicroservices.Serialization.Interfaces.IBinarySerializationProvider>) + + + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.Interfaces.ITextSerializationProvider EasyMicroservices.Serialization.Options.SerializationOptionBuilder::GetTextSerialization() + + + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.Interfaces.IBinarySerializationProvider EasyMicroservices.Serialization.Options.SerializationOptionBuilder::GetBinarySerialization() + + + + + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.YamlDotNet.dll + 2023-12-11T05:53:23 + EasyMicroservices.Serialization.YamlDotNet + + + + + + + + Microsoft.Extensions.DependencyInjection.YamlDotNetExtensions + + + + + EasyMicroservices.Serialization.Options.SerializationOption Microsoft.Extensions.DependencyInjection.YamlDotNetExtensions::UseYamlDotNet(EasyMicroservices.Serialization.Options.SerializationOption) + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.YamlDotNet.Providers.YamlDotNetProvider + + + + + T EasyMicroservices.Serialization.YamlDotNet.Providers.YamlDotNetProvider::Deserialize(System.String) + + + + + + + + + + + + + + + + System.String EasyMicroservices.Serialization.YamlDotNet.Providers.YamlDotNetProvider::Serialize(T) + + + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.MessagePack.dll + 2023-12-11T05:53:23 + EasyMicroservices.Serialization.MessagePack + + + + + + + + EasyMicroservices.Serialization.MessagePack.Providers.MessagePackProvider + + + + + T EasyMicroservices.Serialization.MessagePack.Providers.MessagePackProvider::Deserialize(System.ReadOnlySpan`1<System.Byte>) + + + + + + + + + + + + + System.ReadOnlySpan`1<System.Byte> EasyMicroservices.Serialization.MessagePack.Providers.MessagePackProvider::Serialize(T) + + + + + + + + + + + + + + Microsoft.Extensions.DependencyInjection.MessagePackExtensions + + + + + EasyMicroservices.Serialization.Options.SerializationOption Microsoft.Extensions.DependencyInjection.MessagePackExtensions::UseMessagePack(EasyMicroservices.Serialization.Options.SerializationOption) + + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.System.Text.Xml.dll + 2023-12-11T05:53:23 + EasyMicroservices.Serialization.System.Text.Xml + + + + + + + + Microsoft.Extensions.DependencyInjection.SystemTextXmlExtensions + + + + + EasyMicroservices.Serialization.Options.SerializationOption Microsoft.Extensions.DependencyInjection.SystemTextXmlExtensions::UseSystemTextXml(EasyMicroservices.Serialization.Options.SerializationOption) + + + + + + + + + + + + + + + + EasyMicroservices.Serialization.System.Text.Xml.Providers.SystemTextXmlProvider + + + + + T EasyMicroservices.Serialization.System.Text.Xml.Providers.SystemTextXmlProvider::Deserialize(System.String) + + + + + + + + + + + + + + System.String EasyMicroservices.Serialization.System.Text.Xml.Providers.SystemTextXmlProvider::Serialize(T) + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file