Problem to solve
If the project is published with AOT, you need to add TrimmerRootAssembly entries for all referenced libraries, for example:
<ItemGroup>
<TrimmerRootAssembly Include="CanKit.Abstractions" />
<TrimmerRootAssembly Include="CanKit.Adapter.ZLG" />
<TrimmerRootAssembly Include="CanKit.Adapter.PCAN" />
<TrimmerRootAssembly Include="CanKit.Adapter.Kvaser" />
<TrimmerRootAssembly Include="CanKit.Core" />
</ItemGroup>
This significantly increases the size of the compiled executable. Is it convenient to support AOT publishing?
支持aot发布。 如果项目以aot发布需要添加TrimmerRootAssembly ,所有引用的库都要添加,例如
<ItemGroup>
<TrimmerRootAssembly Include="CanKit.Abstractions" />
<TrimmerRootAssembly Include="CanKit.Adapter.ZLG" />
<TrimmerRootAssembly Include="CanKit.Adapter.PCAN" />
<TrimmerRootAssembly Include="CanKit.Adapter.Kvaser" />
<TrimmerRootAssembly Include="CanKit.Core" />
</ItemGroup>
,这使得编译后的exe体积增大不少 , 方便支持AOT发布吗
Proposal
For AOT publishing, TrimmerRootAssembly does not need to be added, which helps reduce the executable size.
Alternatives considered
No response
Areas
Problem to solve
If the project is published with AOT, you need to add TrimmerRootAssembly entries for all referenced libraries, for example:
This significantly increases the size of the compiled executable. Is it convenient to support AOT publishing?
支持aot发布。 如果项目以aot发布需要添加TrimmerRootAssembly ,所有引用的库都要添加,例如
,这使得编译后的exe体积增大不少 , 方便支持AOT发布吗
Proposal
For AOT publishing, TrimmerRootAssembly does not need to be added, which helps reduce the executable size.
Alternatives considered
No response
Areas