Skip to content

Commit 67a3cef

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 23e787c commit 67a3cef

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
@@ -19,6 +19,11 @@
1919
<AllowUnsafeBlocks Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == '$(NetFrameworkMinimumSupportedVersion)'">true</AllowUnsafeBlocks>
2020
</PropertyGroup>
2121

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

0 commit comments

Comments
 (0)