Skip to content

Commit

Permalink
Removed Microsoft.NET.Test.Sdk from Core.Testing project to not have …
Browse files Browse the repository at this point in the history
…it publishing Test Results

Updated .NET version to x instead of hardcoded
  • Loading branch information
oskardudycz committed Jul 20, 2021
1 parent 5282909 commit 8742ed4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.cqrs_flow.dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions CQRS_Flow/.NET/Core/Core.Testing/Core.Testing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<IsTestProject>false</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="Microsoft.DotNet.InternalAbstractions" Version="1.0.500-preview2-1-003177" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NSubstitute" Version="4.2.2" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="5.0.7" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class SerializationExtensions
/// <returns>deserialized object</returns>
public static T FromJson<T>(this string json)
{
return JsonConvert.DeserializeObject<T>(json);
return JsonConvert.DeserializeObject<T>(json)!;
}

/// <summary>
Expand Down

0 comments on commit 8742ed4

Please sign in to comment.