-
Notifications
You must be signed in to change notification settings - Fork 184
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
Azure Function with .NET and AOT produces Exception: System.InvalidOperationException: Reflection-based serialization #2715
Comments
As far as I remember AoT is not supported by Azure Functions Is there any threat or list of required job to make? Most part what I think that would be required would be related to removing json files with configurations of the functions |
Hi @shotyme thanks for reporting but why you using AOT. |
@bhagyshricompany I want to use AOT in my functions to have super fast Start-Up time. I read something like theoretical 2-3 times faster with AOT. This would be huge. |
As I wrote in my initial post: Steps for reproduction:
You will get a |
Hi @KondzioSSJ4 Thanks for patience .Will discuss and update. Thanks |
Hi,
when I create a new Azure Function v4 with .NET8 in isolated-worker mode and add
to the .csproj I get this exception on the startup:
The Azure Function was created by the Visual Studio 2022 template and just contained the boilderplate HttpTrigger. If you remove the
PublishAot
option from your csproj you should remove thebin
andobj
folder and it should start again. Same goes the other way around when you add it back in and you want to produce the issue again.Do I miss something here?
The text was updated successfully, but these errors were encountered: