From 9e40da193f1202b4e560154b1bd97f05f0c742ea Mon Sep 17 00:00:00 2001 From: Hugo Woodiwiss Date: Sat, 3 Feb 2024 16:55:44 +0000 Subject: [PATCH 1/3] Add missing DynamicallyAccessedMembers annotation This adds a missing DynamicallyAccessedMembers on Configure that means that the DynamicallyAccessedMembers annotation on AddQueryParameters is not fulfilled. --- src/RequestInformation.cs | 4 ++++ 1 file changed, 4 insertions(+) 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(); From a50f65ceaa322ae5f2509510a7ab35d7f089e70b Mon Sep 17 00:00:00 2001 From: Hugo Woodiwiss Date: Sat, 3 Feb 2024 21:32:44 +0000 Subject: [PATCH 2/3] Bump version to 1.7.9 Bumps version to 1.7.9 and adds a changelog entry --- CHANGELOG.md | 6 ++++++ src/Microsoft.Kiota.Abstractions.csproj | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f23aa457..a0240931 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ 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`. + ## [1.7.8] - 2024-02-02 ### Changed diff --git a/src/Microsoft.Kiota.Abstractions.csproj b/src/Microsoft.Kiota.Abstractions.csproj index 66996541..1c643935 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 From aac328686a09d45740cddc1d78b72b3dc57bc097 Mon Sep 17 00:00:00 2001 From: Hugo Woodiwiss Date: Sat, 3 Feb 2024 22:14:49 +0000 Subject: [PATCH 3/3] Fix setting IsTrimmable on net5.0 build --- CHANGELOG.md | 1 + src/Microsoft.Kiota.Abstractions.csproj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0240931..1115a3fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Added `DynamicallyAccessedMembers` annotation to `RequestInformation.Configure`. +- Fixes `IsTrimmable` property on the project. ## [1.7.8] - 2024-02-02 diff --git a/src/Microsoft.Kiota.Abstractions.csproj b/src/Microsoft.Kiota.Abstractions.csproj index 1c643935..36f1878c 100644 --- a/src/Microsoft.Kiota.Abstractions.csproj +++ b/src/Microsoft.Kiota.Abstractions.csproj @@ -34,7 +34,7 @@ README.md $(NoWarn);NU5048;NETSDK1138 - + true