From 43f03645a60f677edf9c2f2e2d7f353a2793bbe8 Mon Sep 17 00:00:00 2001 From: Peter Song Date: Tue, 8 Oct 2024 11:28:56 -0700 Subject: [PATCH] fix: fix #3497. make internalsdkutils trim compatible --- .../12af73ee-4e14-4b81-af61-e4fd810df074.json | 9 +++++++++ sdk/src/Core/Amazon.Util/Internal/InternalSDKUtils.cs | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 generator/.DevConfigs/12af73ee-4e14-4b81-af61-e4fd810df074.json diff --git a/generator/.DevConfigs/12af73ee-4e14-4b81-af61-e4fd810df074.json b/generator/.DevConfigs/12af73ee-4e14-4b81-af61-e4fd810df074.json new file mode 100644 index 000000000000..374ec16f240a --- /dev/null +++ b/generator/.DevConfigs/12af73ee-4e14-4b81-af61-e4fd810df074.json @@ -0,0 +1,9 @@ +{ + "core": { + "changeLogMessages": [ + "Fix #3497, make InternalSDKUtils aot compatible." + ], + "type": "patch", + "updateMinimum": true + } + } \ No newline at end of file diff --git a/sdk/src/Core/Amazon.Util/Internal/InternalSDKUtils.cs b/sdk/src/Core/Amazon.Util/Internal/InternalSDKUtils.cs index beaf7e03a3f3..6a5d13c589e4 100644 --- a/sdk/src/Core/Amazon.Util/Internal/InternalSDKUtils.cs +++ b/sdk/src/Core/Amazon.Util/Internal/InternalSDKUtils.cs @@ -23,9 +23,13 @@ using Amazon.Runtime.Internal.Util; using Amazon.Util.Internal.PlatformServices; using System.Text; +using System.Diagnostics.CodeAnalysis; namespace Amazon.Util.Internal { +#if NET8_0_OR_GREATER + [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] +#endif public static partial class InternalSDKUtils { #region UserAgent