about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--MatrixUtils.Web/MatrixUtils.Web.csproj26
1 files changed, 21 insertions, 5 deletions
diff --git a/MatrixUtils.Web/MatrixUtils.Web.csproj b/MatrixUtils.Web/MatrixUtils.Web.csproj
index 9d7eab4..38816ff 100644
--- a/MatrixUtils.Web/MatrixUtils.Web.csproj
+++ b/MatrixUtils.Web/MatrixUtils.Web.csproj
@@ -12,12 +12,28 @@
         <BlazorEnableCompression>false</BlazorEnableCompression>
         <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
         <BlazorCacheBootResources>false</BlazorCacheBootResources>
-        <TrimMode>full</TrimMode>
-        <!--        <RunAOTCompilation>true</RunAOTCompilation>-->
-
-
         <BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
-        <InvariantGlobalization>true</InvariantGlobalization>
+    </PropertyGroup>
+    
+    <!-- Explicitly disable all the unused runtime things trimming would have removed anyways -->
+    <!-- https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options -->
+    <PropertyGroup>
+        <AutoreleasePoolSupport>false</AutoreleasePoolSupport> <!-- Browser != MacOS -->
+        <MetadataUpdaterSupport>false</MetadataUpdaterSupport> <!-- Unreliable -->
+        <DebuggerSupport>false</DebuggerSupport> <!-- Unreliable -->
+        <InvariantGlobalization>true</InvariantGlobalization> <!-- invariant globalization is fine -->
+        <!-- unused features -->
+        <EventSourceSupport>false</EventSourceSupport>
+        <EnableUnsafeBinaryFormatterSerialization>false</EnableUnsafeBinaryFormatterSerialization>
+        <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
+        <EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
+        <MetricsSupport>false</MetricsSupport>
+        <UseNativeHttpHandler>false</UseNativeHttpHandler>
+        <XmlResolverIsNetworkingEnabledByDefault>false</XmlResolverIsNetworkingEnabledByDefault>
+        <BuiltInComInteropSupport>false</BuiltInComInteropSupport>
+        <CustomResourceTypesSupport>false</CustomResourceTypesSupport>
+        <EnableCppCLIHostActivation>false</EnableCppCLIHostActivation>
+        <StartupHookSupport>false</StartupHookSupport>
     </PropertyGroup>
 
     <ItemGroup>