Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

### Features Added

- Enable AOT compatibility validation for Azure Monitor OpenTelemetry Exporter
([#62850](https://github.com/Azure/azure-sdk-for-net/pull/62850))

### Breaking Changes

### Bugs Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<PackageTags>Azure Monitor OpenTelemetry Exporter ApplicationInsights</PackageTags>
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
<IncludeOperationsSharedSource>true</IncludeOperationsSharedSource>
<AotCompatOptOut>true</AotCompatOptOut>
<EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator>
<DefineConstants>$(DefineConstants);AZURE_MONITOR_EXPORTER;</DefineConstants>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ private static MethodInfo GetMethodInfo<T1, T2, TResult>(Expression<Func<T1, T2,
throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Expression is not a method"), nameof(expression));
}

[UnconditionalSuppressMessage("AOT", "IL2072", Justification = "The DocumentIngress class and its derived classes have DynamicallyAccessedMembers attribute applied to preserve public properties.")]
Comment thread
xiang17 marked this conversation as resolved.
Resolved
private static Type GetPropertyTypeFromFieldName(string fieldName)
{
try
Expand Down
Loading