Skip to content

Commit 4fc1070

Browse files
committed
Fixed failure to run .NET 6 tests
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
1 parent b680ba7 commit 4fc1070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Serilog.Sinks.MSSqlServer.Tests/Serilog.Sinks.MSSqlServer.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net462;net472;net6.0</TargetFrameworks>
5-
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0</TargetFrameworks>
65
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
76
<AssemblyName>Serilog.Sinks.MSSqlServer.Tests</AssemblyName>
87
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
@@ -11,6 +10,7 @@
1110
<PackageId>Serilog.Sinks.MSSqlServer.Tests</PackageId>
1211
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
1312
<RuntimeIdentifiers>win</RuntimeIdentifiers>
13+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
1414
<PlatformTarget>AnyCPU</PlatformTarget>
1515
</PropertyGroup>
1616

0 commit comments

Comments
 (0)