-
Notifications
You must be signed in to change notification settings - Fork 862
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
InternalSDKUtils trim warning #3497
Comments
Hi @tmitchel2, Thank you for bringing this issue to our attention. Our team will work towards implementing a suitable fix. Regards, |
Comments on closed issues are hard for our team to see. |
* fix #3497. Make InternalSDKUtils aot compatible in v4
Describe the bug
Usage of AWSSDK.Core 3.7.400.22 with native aot causes the following trimmer warning.
ILC : Trim analysis warning IL2075: Amazon.Util.Internal.InternalSDKUtils.ApplyValues(Object,IDictionary`2<String,Object>): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The return value of method 'System.Object.GetType()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
Regression Issue
Expected Behavior
No trim warnings.
Current Behavior
Trim warnings raised.
Reproduction Steps
Reference AWSSDK.Core and try to publish with PublishAot true... Various parts of my csproj are below.
Possible Solution
No response
Additional Information/Context
Also, setting the AWSSDK.Core reference as a trimmer root assembly results in even more warnings.
AWS .NET SDK and/or Package version used
AWSSDK.Core 3.7.400.22
Targeted .NET Platform
.NET 8
Operating System and version
OSX Arm64
The text was updated successfully, but these errors were encountered: