Skip to content

[feat] Supports AOT publishing #46

Description

@pelva

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

  • Core
  • PCAN
  • Kvaser
  • SocketCAN
  • ZLG
  • Docs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions