Skip to content

Commit

Permalink
Removed unnecessary setings for System.Diagnostics.DiagnosticSource v…
Browse files Browse the repository at this point in the history
…ersion in Opc.Ua.Client.csproj
  • Loading branch information
mrsuciu committed Jan 23, 2025
1 parent f4c852a commit 098533a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Libraries/Opc.Ua.Client/Opc.Ua.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,16 @@
<PackageId>$(PackageId).Debug</PackageId>
</PropertyGroup>

<!-- Needed on windows builds since 'netstandard2.0' Opc.Ua.Client.dll builds
are reporting "error : API compatibility errors" with 'net472' and 'netstandard2.1' targets -->
<PropertyGroup>
<ApiCompatGenerateSuppressionFile>true</ApiCompatGenerateSuppressionFile>
</PropertyGroup>

<!-- select ECC support -->
<Choose>
<When Condition="'$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'netstandard2.0'">
<ItemGroup>
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="6.0.1" />
</ItemGroup>
</When>
<Otherwise>
<PropertyGroup>
<DefineConstants>$(DefineConstants);ECC_SUPPORT</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' != 'net6.0' AND '$(TargetFramework)' != 'net7.0' AND '$(TargetFramework)' != 'net8.0'">
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="6.0.1" />
</ItemGroup>
</Otherwise>
</Choose>

<ItemGroup>
<ProjectReference Include="..\..\Stack\Opc.Ua.Core\Opc.Ua.Core.csproj" />
<ProjectReference Include="..\Opc.Ua.Configuration\Opc.Ua.Configuration.csproj" />
Expand Down

0 comments on commit 098533a

Please sign in to comment.