diff --git a/CHANGELOG.md b/CHANGELOG.md index 327e5a2..b0d6bd5 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.1.0] - 2023-10-23 + +### Added + +- Added support for dotnet trimming. + ### Added ### Changed diff --git a/src/Microsoft.Kiota.Serialization.Multipart.csproj b/src/Microsoft.Kiota.Serialization.Multipart.csproj index 8d052f4..7282e75 100644 --- a/src/Microsoft.Kiota.Serialization.Multipart.csproj +++ b/src/Microsoft.Kiota.Serialization.Multipart.csproj @@ -6,7 +6,7 @@ © Microsoft Corporation. All rights reserved. Kiota Multipart Serialization Library for dotnet Microsoft - netstandard2.0;netstandard2.1 + netstandard2.0;netstandard2.1;net5.0 latest true http://go.microsoft.com/fwlink/?LinkID=288890 @@ -14,7 +14,7 @@ https://aka.ms/kiota/docs true true - 1.0.0 + 1.1.0 true true @@ -32,7 +32,8 @@ true LICENSE README.md - $(NoWarn);NU5048 + $(NoWarn);NU5048;NETSDK1138 + true @@ -41,7 +42,7 @@ all - + @@ -58,4 +59,4 @@ - + \ No newline at end of file diff --git a/src/MultipartSerializationWriter.cs b/src/MultipartSerializationWriter.cs index 7dad640..c0b06fb 100644 --- a/src/MultipartSerializationWriter.cs +++ b/src/MultipartSerializationWriter.cs @@ -7,6 +7,9 @@ using System.IO; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; +#if NET5_0_OR_GREATER +using System.Diagnostics.CodeAnalysis; +#endif namespace Microsoft.Kiota.Serialization.Multipart; /// @@ -66,7 +69,11 @@ public void WriteByteArrayValue(string? key, byte[]? value) /// public void WriteByteValue(string? key, byte? value) => throw new NotImplementedException(); /// +#if NET5_0_OR_GREATER + public void WriteCollectionOfEnumValues<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]T>(string? key, IEnumerable? values) where T : struct, Enum => throw new NotImplementedException(); +#else public void WriteCollectionOfEnumValues(string? key, IEnumerable? values) where T : struct, Enum => throw new NotImplementedException(); +#endif /// public void WriteCollectionOfObjectValues(string? key, IEnumerable? values) where T : IParsable => throw new NotImplementedException(); /// @@ -80,7 +87,11 @@ public void WriteByteArrayValue(string? key, byte[]? value) /// public void WriteDoubleValue(string? key, double? value) => throw new NotImplementedException(); /// +#if NET5_0_OR_GREATER + public void WriteEnumValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]T>(string? key, T? value) where T : struct, Enum => throw new NotImplementedException(); +#else public void WriteEnumValue(string? key, T? value) where T : struct, Enum => throw new NotImplementedException(); +#endif /// public void WriteFloatValue(string? key, float? value) => throw new NotImplementedException(); ///