Skip to content

Commit

Permalink
Merge pull request #299 from microsoft/feature/additional-trimming-pr…
Browse files Browse the repository at this point in the history
…oject-config

ci: adds additional trimming testing project configuration
  • Loading branch information
baywet authored Jul 18, 2024
2 parents 7c61913 + 048102d commit e06f086
Showing 1 changed file with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,43 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishTrimmed>true</PublishTrimmed>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TrimmerSingleWarn>false</TrimmerSingleWarn>
<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup
Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
<PublishAot>true</PublishAot>
</PropertyGroup>
<PropertyGroup
Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\abstractions\Microsoft.Kiota.Abstractions.csproj" />
<ProjectReference Include="..\..\..\src\authentication\azure\Microsoft.Kiota.Authentication.Azure.csproj" />
<ProjectReference Include="..\..\..\src\http\httpClient\Microsoft.Kiota.Http.HttpClientLibrary.csproj" />
<ProjectReference Include="..\..\..\src\serialization\form\Microsoft.Kiota.Serialization.Form.csproj" />
<ProjectReference Include="..\..\..\src\serialization\json\Microsoft.Kiota.Serialization.Json.csproj" />
<ProjectReference Include="..\..\..\src\serialization\multipart\Microsoft.Kiota.Serialization.Multipart.csproj" />
<ProjectReference Include="..\..\..\src\serialization\text\Microsoft.Kiota.Serialization.Text.csproj" />
<ProjectReference
Include="..\..\..\src\authentication\azure\Microsoft.Kiota.Authentication.Azure.csproj" />
<ProjectReference
Include="..\..\..\src\http\httpClient\Microsoft.Kiota.Http.HttpClientLibrary.csproj" />
<ProjectReference
Include="..\..\..\src\serialization\form\Microsoft.Kiota.Serialization.Form.csproj" />
<ProjectReference
Include="..\..\..\src\serialization\json\Microsoft.Kiota.Serialization.Json.csproj" />
<ProjectReference
Include="..\..\..\src\serialization\multipart\Microsoft.Kiota.Serialization.Multipart.csproj" />
<ProjectReference
Include="..\..\..\src\serialization\text\Microsoft.Kiota.Serialization.Text.csproj" />
<TrimmerRootAssembly Include="Microsoft.Kiota.Abstractions" />
<TrimmerRootAssembly Include="Microsoft.Kiota.Authentication.Azure" />
<TrimmerRootAssembly Include="Microsoft.Kiota.Http.HttpClientLibrary" />
<TrimmerRootAssembly Include="Microsoft.Kiota.Serialization.Form" />
<TrimmerRootAssembly Include="Microsoft.Kiota.Serialization.Json" />
<TrimmerRootAssembly Include="Microsoft.Kiota.Serialization.Text" />
</ItemGroup>
</Project>

</Project>

0 comments on commit e06f086

Please sign in to comment.