diff --git a/CHANGELOG.md b/CHANGELOG.md index f23aa457..1115a3fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.7.9] - 2024-02-05 + +### Changed + +- Added `DynamicallyAccessedMembers` annotation to `RequestInformation.Configure`. +- Fixes `IsTrimmable` property on the project. + ## [1.7.8] - 2024-02-02 ### Changed diff --git a/src/Microsoft.Kiota.Abstractions.csproj b/src/Microsoft.Kiota.Abstractions.csproj index 66996541..36f1878c 100644 --- a/src/Microsoft.Kiota.Abstractions.csproj +++ b/src/Microsoft.Kiota.Abstractions.csproj @@ -14,7 +14,7 @@ https://aka.ms/kiota/docs true true - 1.7.8 + 1.7.9 true false @@ -34,7 +34,7 @@ README.md $(NoWarn);NU5048;NETSDK1138 - + true diff --git a/src/RequestInformation.cs b/src/RequestInformation.cs index 16ddf283..e8573f5a 100644 --- a/src/RequestInformation.cs +++ b/src/RequestInformation.cs @@ -47,7 +47,11 @@ public RequestInformation(Method method, string urlTemplate, IDictionary /// Type for the query parameters /// Callback to configure the request +#if NET5_0_OR_GREATER + public void Configure<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)] T>(Action>? requestConfiguration) where T : class, new() +#else public void Configure(Action>? requestConfiguration) where T : class, new() +#endif { if(requestConfiguration == null) return; var requestConfig = new RequestConfiguration();