BorisWilhelms / azure-function-dependency-injection

Dependency Injection for Azure Functions v2
https://blog.wille-zone.de/
MIT License
145 stars 45 forks source link

Not Working with .NET Core 2.1 in Functions V2 #23

Open crazyLearning opened 5 years ago

crazyLearning commented 5 years ago

Getting error with .NET core 2.1 in Functions V2

capture

The startup class is not getting initialized when i start the function.

bjr001 commented 5 years ago

Possible duplicate of #17

BorisWilhelms commented 5 years ago

@crazyLearning is your Functions project targeting netstandard2 (instead of the netcoreapp default)?

albertocorrales commented 5 years ago

@BorisWilhelms if I target netstandard2 instead of netcoreapp2.2, it starts working locally without the error @crazyLearning mentioned. However, with target netstandard2 it fails when I deploy to Azure or when I run a Docker container with my azure functions.