Skip to content

Commit 1361467

Browse files
[OTLP] Fix native AoT compatibility
Update Microsoft.Extensions.Configuration.Binder for `net8.0` to fix issues with native AoT and configurating binding.
1 parent 1746ab1 commit 1361467

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OpenTelemetry.Exporter.OpenTelemetryProtocol.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
<AnalysisLevel>latest-all</AnalysisLevel>
2121
</PropertyGroup>
2222

23+
<!-- This package is explicitly upgraded for .NET 8 to fix native AoT compatibility issues -->
24+
<ItemGroup>
25+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" VersionOverride="8.0.2" Condition="'$(TargetFramework)' == 'net8.0'" />
26+
</ItemGroup>
27+
2328
<ItemGroup>
2429
<ProjectReference Include="$(RepoRoot)\src\OpenTelemetry\OpenTelemetry.csproj" />
2530
</ItemGroup>

0 commit comments

Comments
 (0)