Azure / azure-functions-servicebus-extension

Service Bus extension for Azure Functions
MIT License
65 stars 35 forks source link

Updating from 4.3.0 to 5.1.0 of Microsoft.Azure.WebJobs.Extensions.ServiceBus #173

Closed twiga2013 closed 2 years ago

twiga2013 commented 2 years ago

Hi When I update Microsoft.Azure.WebJobs.Extensions.ServiceBus from 4.3.0 to 5.1.0. My existing Azure Function Service Bus Trigger signature does not work anymore. I am upgrading from Azure Function .NET Core 3.1 to .NET 6.0

net6.0 v4 PreserveNewest PreserveNewest Never

`

net6.0 v4 PreserveNewest PreserveNewest Never

`

using System;
using System.Threading.Tasks;
using Microsoft.Azure.ServiceBus;
using Microsoft.Azure.ServiceBus.Core;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Host;
using Microsoft.Extensions.Logging;

 public async Task Run([ServiceBusTrigger("subprocess", Connection = "atsb", AutoComplete = false)] Message message,
                               MessageReceiver messageReceiver,
                               [ServiceBus("subprocess", Connection = "atsb")] MessageSender sender,
                               ILogger log)

I get

Severity Code Description Project File Line Suppression State Error CS0234 The type or namespace name 'ServiceBus' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) FunctionApp14 C:\Users\XXXXX\source\repos\FunctionApp14\FunctionApp14\Function3.cs 3 Active

cachai2 commented 2 years ago

Can you double check your app settings and connection strings for your Service Bus connection?

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.