i've tryed to compile my .net 8.0 project with the
<PublishAot>true</PublishAot>
directive but it not works COCONA appears to be stuck if i compile AoT and doesn't parse the arguments
i've tryed also
<IsTrimmable>false</IsTrimmable>
no luck either
i've also tryed
<ItemGroup>
<!-- Specify assemblies to prevent from trimming -->
<TrimmerRootAssembly Include="Cocona" />
<TrimmerRootAssembly Include="Cocona.Core" />
</ItemGroup>
as the publish output says
2>Assembly 'Cocona' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries
2>Assembly 'Cocona.Core' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries
2>Assembly 'Cocona.Core' produced AOT analysis warnings.
now the things changes, cocona appear to start but it doesn't understand the command i provide
is there a way to make cocona work with AoT compilation?
usually command line tools are quite small, AoT will help a lot in that scneario
in particular, it is probably the trim feature that causes cocona to not work, but it is difficult to tell without a serius investigation of the source code,
Do anyone have any successful experience in AoT + Trim compilation?