Azure / azure-notificationhubs-dotnet

.NET SDK for Azure Notification Hubs
MIT License
70 stars 122 forks source link

Import Microsoft.Azure.NotificationHubs fails #130

Closed markbeij closed 3 years ago

markbeij commented 4 years ago

Following the documentation I want to import Microsoft.Azure.NotificationHubs.

#r "Newtonsoft.Json"
#r "Microsoft.Azure.NotificationHubs"

using System.Net;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Primitives;
using Newtonsoft.Json;

public static async Task<IActionResult> Run(HttpRequest req, ILogger log)
{
    log.LogInformation("C# HTTP trigger function processed a request.");
}

Testing this function I get a 500 response. The logging says: 2020-06-18T10:29:56Z [Error] run.csx(2,1): error CS0006: Metadata file 'Microsoft.Azure.NotificationHubs' could not be found

I created this in a shiny new Function App .Net Core 3.1

mpodwysocki commented 3 years ago

@markbeij confirmed this is a bug and we will get to this as soon as we can.

mpodwysocki commented 3 years ago

Linking https://github.com/Azure/azure-functions-host/issues/6773 as an issue here

mpodwysocki commented 3 years ago

Closing as per not supported anymore.