Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 3c71588

Browse files
committed
Enable trimming in IdentityTokenValidator
1 parent 29cfe34 commit 3c71588

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/IdentityTokenValidator/IdentityTokenValidator.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<!-- Recommended: Embed symbols containing Source Link in the main file (exe/dll) -->
2323
<DebugType>embedded</DebugType>
2424

25+
<!-- Enable Trimming Warnings to allow consumers to publish as trimmed -->
26+
<IsTrimmable Condition="'$(TargetFramework)' == 'net6.0'">true</IsTrimmable>
27+
2528
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">True</ContinuousIntegrationBuild>
2629

2730
<AssemblyOriginatorKeyFile>../../key.snk</AssemblyOriginatorKeyFile>

test/TrimmableAnalysis/TrimmableAnalysis.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<ItemGroup>
1313
<TrimmerRootAssembly Include="IdentityModel.OidcClient" />
1414
<ProjectReference Include="..\..\src\OidcClient\OidcClient.csproj" />
15+
16+
<TrimmerRootAssembly Include="IdentityModel.OidcClient.IdentityTokenValidator" />
17+
<ProjectReference Include="..\..\src\IdentityTokenValidator\IdentityTokenValidator.csproj" />
1518
</ItemGroup>
1619

1720
</Project>

0 commit comments

Comments
 (0)