Azure / azure-functions-eventgrid-extension

EventGrid extension for Azure Functions
MIT License
48 stars 34 forks source link

Dependency on Microsoft.Azure.WebJobs .NET 4.6 #30

Closed bassie1978 closed 3 months ago

bassie1978 commented 6 years ago

I'm trying to set up an Azure Function that has an EventGrid trigger in .NET 4.6

The Microsoft.NET.Sdk.Functions 1.0.13 has dependencies to Microsoft.Azure.WebJobs >= 2.2.0 && <2.3.0 The 2.0.0-beta1 extension requires Microsoft.Azure.WebJobs >= 3.0.0-beta5

Am I missing something, or can I not upgrade to the 2.0.0-beta1 version?

watashiSHUN commented 6 years ago

for that you need: https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.EventGrid/1.0.0-beta4

[EXPLAINATION]: Microsoft.NET.Sdk.Functions 1.0.13 actually targets multiple platforms: image

EventGrid uses another approach, different package version to target different frameworks: 1.0.0 targets full framework image

2.0.0 targets net standard: image

watashiSHUN commented 6 years ago

If you are using visual studio, try the eventgrid template which has the dependency set up:

  1. you need VS2017 15.6.5
  2. install function extension image