Skip to content
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

Fody/LoadAssembliesOnStaertup not working in Azure Function #500

Open
paulprivalgo opened this issue May 12, 2024 · 1 comment
Open

Fody/LoadAssembliesOnStaertup not working in Azure Function #500

paulprivalgo opened this issue May 12, 2024 · 1 comment

Comments

@paulprivalgo
Copy link

Hello

I have an Azure function with references to Fody and Fody.LoadAssembliesOnStartup

MyAssembly

However, when I run the application and go to register the services the services are not loaded so therefore are not registered

Is there something specific that needs to be done for Azure Funcitons?

Paul

@SimonCropp SimonCropp transferred this issue from Fody/Fody May 12, 2024
@GeertvanHorrik
Copy link
Member

We don't use Azure Functions ourselves, but assuming they are using a normal runtime, as soon as the assembly loads, this should load the dependencies. You can check the generated IL (e.g. via ILSharp) to see if it correctly loads the assemblies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants