Skip to content

Commit bf002b7

Browse files
committed
Fix System.Diagnostics.DiagnosticSource for MongoDB test
1 parent 7e2eab3 commit bf002b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test-applications/integrations/TestApplication.MongoDB/TestApplication.MongoDB.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="MongoDB.Driver" VersionOverride="$(LibraryVersion)" />
18-
<!-- Workaround! Microsoft.Extensions.Logging.Abstractions v9.0.0 is minimal version supported by auto instrumentation.
18+
<!-- Workaround! Microsoft.Extensions.Logging.Abstractions v8.0.0 is minimal version supported by auto instrumentation.
1919
MongoDB.Driver 2.18+ references older version. It prevents to load required version from Additional Dependencies store-->
20-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="9.0.0" />
20+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="8.0.0" />
21+
<PackageReference Include="System.Diagnostics.DiagnosticSource" Condition=" '$(TargetFramework)' == 'net8.0' " />
2122
</ItemGroup>
2223

2324
</Project>

0 commit comments

Comments
 (0)