BorisWilhelms / azure-function-dependency-injection

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

Doesn't work with version 1.0.19 of Microsoft.NET.Sdk.Functions #9

Closed benm-eras closed 5 years ago

benm-eras commented 6 years ago

I just want to start by saying thanks for an excellent solution that really helped me out!

The other day version 1.0.19 of the SDK was released, and I immediately ran in to problems .

The solution to these problems is to install an update to the VS2017 tools (forced on me today), and to install Microsoft.Azure.WebJobs.Extensions.Storage 3.0.0-beta8. It seems that this is working for other users but it breaks your DI solution!

The problem seems to be that they have removed the Config property of the ExtensionConfigContext used in your InjectionConfiguration class.

I have had a go at sorting it myself but made no progress; so I would really appreciate any help or pointers you could give?

jnevins-gcm commented 6 years ago

https://github.com/Azure/azure-webjobs-sdk/issues/1786

scarbon commented 6 years ago

Azure/ExtensionConfigContext#1865

ielcoro commented 6 years ago

See the changes needed in my answer here https://github.com/Azure/azure-webjobs-sdk/issues/1865#issuecomment-417958408

BorisWilhelms commented 5 years ago

I have updated the library to the latest SDK Version and Azure Function V2. It is now also available as a nuget package. https://www.nuget.org/packages/Willezone.Azure.WebJobs.Extensions.DependencyInjection

espray commented 5 years ago

@BorisWilhelms Awesome!!! Thanks for making a NuGet as well!!!