From ab0195a5b0189ba8c8970ed106315c9ab8554f3c Mon Sep 17 00:00:00 2001
From: James Newton-King <james@newtonking.com>
Date: Fri, 24 Jun 2022 07:39:11 +0800
Subject: [PATCH] Add RequestDecompression project to trimming (#42355)

---
 eng/TrimmableProjects.props                                      | 1 +
 .../src/Microsoft.AspNetCore.RequestDecompression.csproj         | 1 +
 src/Tools/Tools.slnf                                             | 1 +
 3 files changed, 3 insertions(+)

diff --git a/eng/TrimmableProjects.props b/eng/TrimmableProjects.props
index d3168e4d059..f87e23bba22 100644
--- a/eng/TrimmableProjects.props
+++ b/eng/TrimmableProjects.props
@@ -68,6 +68,7 @@
     <TrimmableProject Include="Microsoft.AspNetCore.Localization" />
     <TrimmableProject Include="Microsoft.AspNetCore.OutputCaching" />
     <TrimmableProject Include="Microsoft.AspNetCore.RateLimiting" />
+    <TrimmableProject Include="Microsoft.AspNetCore.RequestDecompression" />
     <TrimmableProject Include="Microsoft.AspNetCore.ResponseCaching.Abstractions" />
     <TrimmableProject Include="Microsoft.AspNetCore.ResponseCaching" />
     <TrimmableProject Include="Microsoft.AspNetCore.ResponseCompression" />
diff --git a/src/Middleware/RequestDecompression/src/Microsoft.AspNetCore.RequestDecompression.csproj b/src/Middleware/RequestDecompression/src/Microsoft.AspNetCore.RequestDecompression.csproj
index 3089a5ca162..be80f8b5185 100644
--- a/src/Middleware/RequestDecompression/src/Microsoft.AspNetCore.RequestDecompression.csproj
+++ b/src/Middleware/RequestDecompression/src/Microsoft.AspNetCore.RequestDecompression.csproj
@@ -7,6 +7,7 @@
     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     <PackageTags>aspnetcore</PackageTags>
     <IsPackable>false</IsPackable>
+    <IsTrimmable>true</IsTrimmable>
   </PropertyGroup>
 
   <ItemGroup>
diff --git a/src/Tools/Tools.slnf b/src/Tools/Tools.slnf
index e277c5a3154..4b5a33b5101 100644
--- a/src/Tools/Tools.slnf
+++ b/src/Tools/Tools.slnf
@@ -53,6 +53,7 @@
       "src\\Middleware\\Localization\\src\\Microsoft.AspNetCore.Localization.csproj",
       "src\\Middleware\\MiddlewareAnalysis\\src\\Microsoft.AspNetCore.MiddlewareAnalysis.csproj",
       "src\\Middleware\\RateLimiting\\src\\Microsoft.AspNetCore.RateLimiting.csproj",
+      "src\\Middleware\\RequestDecompression\\src\\Microsoft.AspNetCore.RequestDecompression.csproj",
       "src\\Middleware\\ResponseCaching.Abstractions\\src\\Microsoft.AspNetCore.ResponseCaching.Abstractions.csproj",
       "src\\Middleware\\ResponseCaching\\src\\Microsoft.AspNetCore.ResponseCaching.csproj",
       "src\\Middleware\\ResponseCompression\\src\\Microsoft.AspNetCore.ResponseCompression.csproj",
-- 
GitLab