MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.21k stars 21.37k forks source link

The attribute 'QueueTriggerAttribute' is a WebJobs attribute and not supported in the .NET Worker (Isolated Process) #119464

Open skykingjwc opened 7 months ago

skykingjwc commented 7 months ago

The attribute 'QueueTriggerAttribute' is a WebJobs attribute and not supported in the .NET Worker (Isolated Process).

Yes, I've installed the required Azure packages


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AjayBathini-MSFT commented 7 months ago

@skykingjwc Thanks for bringing this to our attention. I'm going to assign this to the document author so they can take a look at it accordingly.

gempio commented 7 months ago

Is there a time for this feature to become available in isolated workers?

cgillum commented 7 months ago

@skykingjwc what nuget package are you using for the queue trigger? It should be Microsoft.Azure.Functions.Worker.Extensions.Storage.Queues, not the WebJobs variant.

@gempio what feature are you referring to? Both Durable Functions and queue trigger functions are available already in the .NET Isolated worker.

stan-stepien commented 6 months ago

cgillum exactly, the problem appears because Visual Studio suggests installing web jobs package

cgillum commented 6 months ago

@stan-stepien that's really interesting. Do you have a screenshot you can share showing how Visual Studio is making this suggestion? It definitely shouldn't be making this suggestion.

nycdotnet commented 4 months ago

@cgillum here's an example:

Install Microsoft Azure WebJobs Extensions Storage

This is Visual Studio Pro 17.9.7 (latest as of May 21, 2024).

techtoniq commented 3 months ago

I had the same problem. Ignore Visual Studio, don't add the WebJobs package to your project, instead add this:

<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Storage.Queues" Version="5.4.0" />