Skip to content

Commit

Permalink
Fixed failure to run .NET 6 tests
Browse files Browse the repository at this point in the history
Error:
Testhost process exited with error: Error:
  An assembly specified in the application dependencies manifest (Serilog.Sinks.MSSqlServer.Tests.deps.json) was not found:
    package: 'Azure.Core', version: '1.6.0'
    path: 'lib/netstandard2.0/Azure.Core.dll'
. Please check the diagnostic logs for more information.

Solution found here: https://stackoverflow.com/a/73548949/2586938
  • Loading branch information
ckadluba committed Oct 17, 2022
1 parent b680ba7 commit 4fc1070
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net462;net472;net6.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AssemblyName>Serilog.Sinks.MSSqlServer.Tests</AssemblyName>
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
Expand All @@ -11,6 +10,7 @@
<PackageId>Serilog.Sinks.MSSqlServer.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<RuntimeIdentifiers>win</RuntimeIdentifiers>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>

Expand Down

0 comments on commit 4fc1070

Please sign in to comment.