Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Resolve Azure.Core AOT warnings impacting the AOT compatibility of Azure.Monitor.OpenTelemetry.Exporter #37761

Closed
10 of 11 tasks
m-redding opened this issue Jul 20, 2023 · 2 comments
Assignees
Labels
Azure.Core Client This issue points to a problem in the data-plane of the library.

Comments

@m-redding
Copy link
Member

m-redding commented Jul 20, 2023

Library name

Azure.Core

Please describe the feature.

This issue is tracking the work needed to resolve #35572

@m-redding m-redding added Client This issue points to a problem in the data-plane of the library. Azure.Core labels Jul 20, 2023
@m-redding m-redding changed the title [Core] Tracking work to resolve Native AOT warnings in Azure.Core [Core] Tracking work to resolve some Native AOT warnings in Azure.Core Aug 14, 2023
@m-redding m-redding changed the title [Core] Tracking work to resolve some Native AOT warnings in Azure.Core [Core] Resolve Azure.Core AOT warnings impacting the AOT compatibility of Azure.Monitor.OpenTelemetry.Exporter Aug 15, 2023
@m-redding m-redding self-assigned this Oct 17, 2023
@JeyJeyGao
Copy link

JeyJeyGao commented Nov 20, 2023

Hello @m-redding , looks like there is still a trim warning for Azure.Core when build with AOT enabled.

Warnings:

/home/jj/.nuget/packages/azure.core/1.36.0/lib/net6.0/Azure.Core.dll : warning IL2104: Assembly 'Azure.Core' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/home/jj/projects/junjie/notation-azure-kv/Notation.Plugin.AzureKeyVault/Notation.Plugin.AzureKeyVault.csproj]
/home/jj/.nuget/packages/azure.security.keyvault.keys/4.6.0-beta.2/lib/netstandard2.0/Azure.Security.KeyVault.Keys.dll : warning IL2104: Assembly 'Azure.Security.KeyVault.Keys' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/home/jj/projects/junjie/notation-azure-kv/Notation.Plugin.AzureKeyVault/Notation.Plugin.AzureKeyVault.csproj]

Could you tell me how to fix it? Dotnet 8 stable version was released and we are going to bump up to Dotnet 8 with AOT enabled.

@m-redding
Copy link
Member Author

m-redding commented Nov 20, 2023

Hey @JeyJeyGao I have been looking into this and I can see a couple new warnings which I am working on getting addressed. Just as a note, the warning coming from Azure.Core is because of a warning suppression that is missing so as long as it's just that one you're seeing then the code is still safe for trimming. On the KeyVault side, this is coming from a trimming update in .NET 8 that is different from .NET 8 RC2. I don't think the code is actually trim-incompatible here either, I need to confirm but I think this will also just be a suppression as well.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Azure.Core Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

No branches or pull requests

2 participants