You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
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?
The text was updated successfully, but these errors were encountered:
I have the same problem, here's what I managed to find while playing with a debugger :
A suitable constructor for type 'Cocona.Command.Dispatcher.Middlewares.InitializeConsoleAppMiddleware' could not be located. Ensure the type is concrete and all parameters of a public constructor are either registered as services or passed as arguments. Also ensure no extraneous arguments are provided.
I have experience building simple AOT applications that reference DragonFruit and Cocona.
For Cocona, you must specify trimming exclusions for the public constructor as shown in the error log.
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
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?
The text was updated successfully, but these errors were encountered: