-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PublishAot fails with CodeGenerationFailedException/InvalidOperationException at TypeSystemHelpers.ContainsSignatureVariables #98821
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsI'm working on making a library NativeAOT compatible. I tried to compile an application that uses the library with
To reproduce:
There are a lot of warnings when I publish the app which I still need to address.
|
This code looks like a bug. I think it should be We should not crash on buggy code like this, but fixing this bug in your library is likely going to make the crash go away. |
@jkotas that's indeed a bug, and also what is causing the crash. Thanks!! I'll leave this open to track improving the compiler so it doesn't crash for this. |
I'm working on making a library NativeAOT compatible.
I tried to compile an application that uses the library with
PublishAot
and the ILCompiler is throwing an exception:To reproduce:
There are a lot of warnings when I publish the app which I still need to address.
It could be that the exception goes away when I've done that.
cc @MichalStrehovsky
The text was updated successfully, but these errors were encountered: