From 8742ed47066f791b3cb85a60ac72966bf2abe25a Mon Sep 17 00:00:00 2001 From: "oskar.dudycz" Date: Thu, 15 Jul 2021 15:20:47 +0200 Subject: [PATCH] Removed Microsoft.NET.Test.Sdk from Core.Testing project to not have it publishing Test Results Updated .NET version to x instead of hardcoded --- .github/workflows/build.cqrs_flow.dotnet.yml | 2 +- CQRS_Flow/.NET/Core/Core.Testing/Core.Testing.csproj | 4 ++-- CQRS_Flow/.NET/Core/Core.Testing/SerializationExtensions.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.cqrs_flow.dotnet.yml b/.github/workflows/build.cqrs_flow.dotnet.yml index 39a32be..e4684dd 100644 --- a/.github/workflows/build.cqrs_flow.dotnet.yml +++ b/.github/workflows/build.cqrs_flow.dotnet.yml @@ -24,7 +24,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: "5.0.100" + dotnet-version: "5.0.x" - name: Restore NuGet packages run: dotnet restore diff --git a/CQRS_Flow/.NET/Core/Core.Testing/Core.Testing.csproj b/CQRS_Flow/.NET/Core/Core.Testing/Core.Testing.csproj index d0e2685..919a15f 100644 --- a/CQRS_Flow/.NET/Core/Core.Testing/Core.Testing.csproj +++ b/CQRS_Flow/.NET/Core/Core.Testing/Core.Testing.csproj @@ -4,14 +4,14 @@ net5.0 enable true + false - - + diff --git a/CQRS_Flow/.NET/Core/Core.Testing/SerializationExtensions.cs b/CQRS_Flow/.NET/Core/Core.Testing/SerializationExtensions.cs index 32f93aa..429e593 100644 --- a/CQRS_Flow/.NET/Core/Core.Testing/SerializationExtensions.cs +++ b/CQRS_Flow/.NET/Core/Core.Testing/SerializationExtensions.cs @@ -14,7 +14,7 @@ public static class SerializationExtensions /// deserialized object public static T FromJson(this string json) { - return JsonConvert.DeserializeObject(json); + return JsonConvert.DeserializeObject(json)!; } ///