Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QueueTriggerAttribute Missing

I have created an Azure function using the 3.0.0-beta8 version of the Microsoft.Azure.Functions, Microsoft.Azure.Functions.Core and the Microsoft.Azure.WebJobs.Extensions NuGet packages, and it does not resolve the QueueTriggerAttribute package - has this been deprecated / moved to a new library?

It is not immediately apparent what I install to use this trigger in an Azure Function.

like image 920
DenverCoder9 Avatar asked Sep 03 '18 01:09

DenverCoder9


Video Answer


1 Answers

You have met the breaking change in new function runtime.

The Azure Storage bindings (blob, queues and tables triggers and bindings) were previously part of the runtime, but moving forward, will need to be explicitly installed.

Solution is to install this package Microsoft.Azure.WebJobs.Extensions.Storage 3.0.0-beta8. For v2 functions, note that we should always install package of the latest version in Nuget.

Also make sure your runtime version is the latest. Check this issue.

like image 76
Jerry Liu Avatar answered Sep 18 '22 12:09

Jerry Liu