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
Hi, I'm trying to use this library with AOT (PublishAot = true) in .NET 8, but got the following warnings on publish (CommandLineParser 2.9.1):
Generating native code
CommandLine.dll : warning IL2104: Assembly 'CommandLine' produced trim warnings. For more
information see https://aka.ms/dotnet-illink/libraries
CommandLine.dll : warning IL3053: Assembly 'CommandLine' produced AOT analysis warnings.
And when running I see:
Unhandled Exception: System.InvalidOperationException: Type Options appears to be immutable, but no constructor found to accept values.
Type options:
public class Options
{
private readonly bool verbose;
public Options(bool verbose)
{
this.verbose = verbose;
}
[Option]
public bool Verbose { get { return verbose; } }
}
Question: Is publishing with AOT supported?
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use this library with AOT (PublishAot = true) in .NET 8, but got the following warnings on publish (CommandLineParser 2.9.1):
And when running I see:
Type options:
Question: Is publishing with AOT supported?
The text was updated successfully, but these errors were encountered: