File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 <Version Condition =" '$(Version)' == ''" >3.3.1</Version >
99 <AssemblyVersion Condition =" '$(AssemblyVersion)' == ''" >3.3.1.0</AssemblyVersion >
1010 <FileVersion Condition =" '$(FileVersion)' == ''" >3.3.1.0</FileVersion >
11- <Trimming >full</Trimming >
1211 </PropertyGroup >
1312
1413 <PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
1918 <!-- 发布优化配置 -->
2019 <DebugType >none</DebugType >
2120 <DebugSymbols >false</DebugSymbols >
22-
23- <!-- 启用代码裁剪 -->
24- <PublishTrimmed >true</PublishTrimmed >
25-
26- <!-- 单文件发布 -->
21+
22+ <!-- 单文件发布(兼容 self-contained 与 framework-dependent) -->
2723 <PublishSingleFile >true</PublishSingleFile >
2824 <IncludeNativeLibrariesForSelfExtract >true</IncludeNativeLibrariesForSelfExtract >
29-
30- <!-- 启用ReadyToRun优化 -->
31- <PublishReadyToRun >true</PublishReadyToRun >
32-
25+
3326 <!-- 不包含PDB文件 -->
3427 <CopyOutputSymbolsToPublishDirectory >false</CopyOutputSymbolsToPublishDirectory >
3528 </PropertyGroup >
3629
30+ <!-- 仅在 self-contained 发布时启用裁剪与 ReadyToRun(NETSDK1102/NETSDK1094 要求) -->
31+ <PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Release|AnyCPU' and '$(SelfContained)'=='true'" >
32+ <PublishTrimmed >true</PublishTrimmed >
33+ <PublishReadyToRun >true</PublishReadyToRun >
34+ </PropertyGroup >
35+
3736 <ItemGroup >
3837 <PackageReference Include =" UTF.Unknown" Version =" 2.5.1" />
3938 <PackageReference Include =" System.CommandLine" Version =" 2.0.0-beta4.22272.1" />
You can’t perform that action at this time.
0 commit comments