Skip to content

Commit

Permalink
Use 8.0 dependencies for non net9.0, except for System.Diagnostics.Di…
Browse files Browse the repository at this point in the history
…agnosticSource
  • Loading branch information
paulomorgado committed Dec 3, 2024
1 parent b9be07a commit 28b7948
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
possible and only deviate (use a specific version) when a package has a
more specific patch which must be reference directly.
-->
<LatestRuntimeOutOfBandVer>9.0.0</LatestRuntimeOutOfBandVer>
<Runtime9OutOfBandVer>9.0.0</Runtime9OutOfBandVer>
<LatestRuntimeOutOfBandVer>8.0.0</LatestRuntimeOutOfBandVer>
<LatestRuntimeOutOfBandVer Condition="'$(TargetFramework)' == 'net9.0'">$(Runtime9OutOfBandVer)</LatestRuntimeOutOfBandVer>

<!-- Mitigate https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-43485. -->
<SystemTextEncodingsWebOutOfBandMinimumCoreAppVer>8.0.0</SystemTextEncodingsWebOutOfBandMinimumCoreAppVer>
Expand Down Expand Up @@ -59,7 +61,7 @@
3) The .NET runtime team provides extra backward compatibility guarantee to System.Diagnostics.DiagnosticSource
even during major version bumps, so compatibility is not a concern here.
-->
<PackageVersion Include="System.Diagnostics.DiagnosticSource" Version="$(LatestRuntimeOutOfBandVer)" />
<PackageVersion Include="System.Diagnostics.DiagnosticSource" Version="$(Runtime9OutOfBandVer)" />

<!--
We use conservative versions of these packages where an upgrade might
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(TargetFrameworksForLibrariesExtended)</TargetFrameworks>
<Description>OpenTelemetry protocol exporter for OpenTelemetry .NET</Description>
Expand All @@ -17,6 +17,7 @@
and https://github.com/dotnet/runtime/issues/92509 -->
<NoWarn>$(NoWarn);SYSLIB1100;SYSLIB1101</NoWarn>
<AllowUnsafeBlocks Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == '$(NetFrameworkMinimumSupportedVersion)'">true</AllowUnsafeBlocks>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand All @@ -25,6 +26,7 @@

<ItemGroup>
<Reference Include="System.Net.Http" Condition="'$(TargetFramework)' == '$(NetFrameworkMinimumSupportedVersion)'" />
<Using Include="System.Net.Http" Condition="'$(TargetFramework)' == '$(NetFrameworkMinimumSupportedVersion)'" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 28b7948

Please sign in to comment.