Skip to content

Commit 7256a63

Browse files
committed
Ref System.Transactions only for .NET Fx
In the test project the assembly System.Transactions was referenced also for .NET (Core) which leads to a warning with the update to .NET 8. Now we reference it only for the .NET Framework targets.
1 parent 698f5fd commit 7256a63

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' Or '$(TargetFramework)' == 'net462' ">
4040
<Reference Include="Microsoft.CSharp" />
41+
<Reference Include="System.Transactions" />
4142
<Compile Include="Configuration\Extensions\Hybrid\**\*.cs" />
4243
<Compile Include="Configuration\Implementations\Microsoft.Extensions.Configuration\**\*.cs" />
4344
<Compile Include="Configuration\Implementations\System.Configuration\**\*.cs" />
@@ -53,10 +54,6 @@
5354
<Compile Include="Configuration\Implementations\System.Configuration\**\*.cs" />
5455
</ItemGroup>
5556

56-
<ItemGroup>
57-
<Reference Include="System.Transactions" />
58-
</ItemGroup>
59-
6057
<ItemGroup>
6158
<None Update="App.config">
6259
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

0 commit comments

Comments
 (0)