I am migrating from .NET 5 to .NET 6. The application is Published as a Self-Contained Windows application with the command: dotnet publish --configuration Release --output bin\publish --self-contained --runtime win-x64
Running the published application results in exceptions in the SetLicense call. Version 20.4.0 throws a NullReferenceException. Newer throw a variety of other exceptions which just do not happen when either debugging or otherwise running the compiled application (or published without PublishReadToRun true).
When reverted back to .NET 5 with PublishReadyToRun true there is no Exception.
I’ve looked through all of the changelogs and didn’t notice any related fixes. Is this a known issue? Is there a workaround?