2026-06-03 00:50:52 +08:00
|
|
|
|
<Project>
|
|
|
|
|
|
<PropertyGroup Condition="'$(PublishAot)' == 'true'">
|
|
|
|
|
|
<PublishAot>true</PublishAot>
|
|
|
|
|
|
<PublishTrimmed>true</PublishTrimmed>
|
|
|
|
|
|
<TrimMode>partial</TrimMode>
|
|
|
|
|
|
<SelfContained>true</SelfContained>
|
|
|
|
|
|
<PublishSingleFile>true</PublishSingleFile>
|
|
|
|
|
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
|
|
|
|
|
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
|
|
|
|
|
|
<OptimizationPreference>Size</OptimizationPreference>
|
2026-06-09 22:18:27 +08:00
|
|
|
|
<IlcOptimizationPreference>Size</IlcOptimizationPreference>
|
2026-06-03 00:50:52 +08:00
|
|
|
|
<PublishReadyToRun>false</PublishReadyToRun>
|
2026-06-09 22:18:27 +08:00
|
|
|
|
<DebuggerSupport>false</DebuggerSupport>
|
|
|
|
|
|
<EventSourceSupport>false</EventSourceSupport>
|
|
|
|
|
|
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
|
|
|
|
|
|
<InvariantGlobalization>true</InvariantGlobalization>
|
|
|
|
|
|
<MetadataUpdaterSupport>false</MetadataUpdaterSupport>
|
|
|
|
|
|
<UseSystemResourceKeys>true</UseSystemResourceKeys>
|
2026-06-03 00:50:52 +08:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
|
|
|
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
2026-07-31 11:43:50 +09:00
|
|
|
|
<!-- NOTE: PrepareInstallerEmbeddedNativeLibraries target 已移除。
|
|
|
|
|
|
原 gzip 嵌入机制(Compress-NativeLibrary.ps1 + EmbeddedResource)与
|
|
|
|
|
|
PublishSingleFile+IncludeNativeLibrariesForSelfExtract 冗余,
|
|
|
|
|
|
且存在 DLL planting 安全风险(%LOCALAPPDATA% 路径 + SetDllDirectory)。
|
|
|
|
|
|
原生库现在通过标准 PackageReference 流入 single-file 发布。 -->
|
2026-06-05 21:43:43 +08:00
|
|
|
|
|
2026-06-03 00:50:52 +08:00
|
|
|
|
<PropertyGroup Condition="'$(PublishAot)' == 'true'">
|
|
|
|
|
|
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
|
|
|
|
|
|
<TrimmerSingleWarn>false</TrimmerSingleWarn>
|
2026-06-09 22:18:27 +08:00
|
|
|
|
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
|
2026-06-03 00:50:52 +08:00
|
|
|
|
<IsAotCompatible>true</IsAotCompatible>
|
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
</Project>
|