Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

feature/trimming #27

Merged
merged 4 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 6 additions & 5 deletions src/Microsoft.Kiota.Serialization.Multipart.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<AssemblyTitle>Kiota Multipart Serialization Library for dotnet</AssemblyTitle>
<Authors>Microsoft</Authors>
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</PackageIconUrl>
<RepositoryUrl>https://github.com/microsoft/kiota-serialization-multipart-dotnet</RepositoryUrl>
<PackageProjectUrl>https://aka.ms/kiota/docs</PackageProjectUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<Deterministic>true</Deterministic>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionPrefix>1.1.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand All @@ -32,7 +32,8 @@
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<NoWarn>$(NoWarn);NU5048</NoWarn>
<NoWarn>$(NoWarn);NU5048;NETSDK1138</NoWarn>
<IsTrimmable>true</IsTrimmable>
</PropertyGroup>

<ItemGroup>
Expand All @@ -41,7 +42,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.4.0" />
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.5.0" />
</ItemGroup>

<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
Expand All @@ -58,4 +59,4 @@
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>
</Project>
11 changes: 11 additions & 0 deletions src/MultipartSerializationWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/// <summary>
Expand Down Expand Up @@ -66,7 +69,11 @@ public void WriteByteArrayValue(string? key, byte[]? value)
/// <inheritdoc/>
public void WriteByteValue(string? key, byte? value) => throw new NotImplementedException();
/// <inheritdoc/>
#if NET5_0_OR_GREATER
public void WriteCollectionOfEnumValues<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]T>(string? key, IEnumerable<T?>? values) where T : struct, Enum => throw new NotImplementedException();
#else
public void WriteCollectionOfEnumValues<T>(string? key, IEnumerable<T?>? values) where T : struct, Enum => throw new NotImplementedException();
#endif
/// <inheritdoc/>
public void WriteCollectionOfObjectValues<T>(string? key, IEnumerable<T>? values) where T : IParsable => throw new NotImplementedException();
/// <inheritdoc/>
Expand All @@ -80,7 +87,11 @@ public void WriteByteArrayValue(string? key, byte[]? value)
/// <inheritdoc/>
public void WriteDoubleValue(string? key, double? value) => throw new NotImplementedException();
/// <inheritdoc/>
#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<T>(string? key, T? value) where T : struct, Enum => throw new NotImplementedException();
#endif
/// <inheritdoc/>
public void WriteFloatValue(string? key, float? value) => throw new NotImplementedException();
/// <inheritdoc/>
Expand Down