Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

added AOT

Sourav Kalalfbeb60897504
diff --git a/.gitignore b/.gitignore
index 13a08bd..7e22bef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,4 +9,5 @@ gui/bin/**
gui/obj/**
cli/bin/**
cli/obj/**
-.vscode/**
\ No newline at end of file
+.vscode/**
+output/ProxyBridge_CLI.pdb
diff --git a/cli/ProxyBridge.CLI.csproj b/cli/ProxyBridge.CLI.csproj
index 2f82ff7..492c7b9 100644
--- a/cli/ProxyBridge.CLI.csproj
+++ b/cli/ProxyBridge.CLI.csproj
@@ -10,6 +10,19 @@
<PublishAot>true</PublishAot>
<InvariantGlobalization>false</InvariantGlobalization>
<SelfContained>true</SelfContained>
+
+ <IlcOptimizationPreference>Size</IlcOptimizationPreference>
+ <IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
+ <IlcTrimMetadata>true</IlcTrimMetadata>
+ <EventSourceSupport>false</EventSourceSupport>
+ <UseSystemResourceKeys>true</UseSystemResourceKeys>
+ <DebuggerSupport>false</DebuggerSupport>
+ <EnableUnsafeBinaryFormatterSerialization>false</EnableUnsafeBinaryFormatterSerialization>
+ <MetadataUpdaterSupport>false</MetadataUpdaterSupport>
+ <StackTraceSupport>false</StackTraceSupport>
+
+ <PublishTrimmed>true</PublishTrimmed>
+ <TrimMode>link</TrimMode>
</PropertyGroup>
<ItemGroup>