Azure Notification Hubs程序包是否与.NET Core兼容? [英] Is Azure Notification Hubs package compatible with .NET Core?
问题描述
我正在使用.NET核心应用程序,但是我发现某些Azure软件包不兼容,例如 NotificationHubs 和 SendGrid :
I'm working with a .NET core app, and I see some Azure packages are not compatible, for example NotificationHubs and SendGrid:
Package Microsoft.Azure.NotificationHubs 1.0.5 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0)
The dependency SendGrid.CSharp.HTTP.Client 2.0.4 does not support framework .NETCoreApp, Version=v1.0
我只尝试添加NotificationHubs和SendGrid。我什至没有尝试过任何ActiveDirectory软件包。
I only tried adding NotificationHubs and SendGrid. I haven't even tried any ActiveDirectory packages yet.
有人知道这些软件包中的一些是否很快就会兼容吗?也许我做错了什么?还是.NET核心应用程序中有办法引用较早的软件包?
Does anyone have any idea if some of these packages will be compatible soon? Or maybe I'm doing something wrong? Or is there a way in a .NET core app to reference an older package?
谢谢!
推荐答案
[2017年11月30日更新] 。
[Update 11/30/2017] Microsoft.Azure.NotificationHubs 2.0.0-preview1 compatible with .NET Core has just been published.
[原始答案]截至2016年7月中旬,Azure Notification Hubs SDK不适用于.NET Core。产品团队正在努力,但尚无ETA。
[Original answer] As of mid-July 2016 Azure Notification Hubs SDK is not available for .NET core. The product team is working on it, but there's no ETA yet.
目前,有两种解决方法:
At the moment, there are two ways to work around it:
- 使用
WindowsAzure.Messaging.Managed
Nuget软件包,如 Windows Universal Platform Apps通知中心入门 - 通过 REST API 。 (方法列表。)
- Use
WindowsAzure.Messaging.Managed
Nuget package as described in Getting started with Notification Hubs for Windows Universal Platform Apps - Through REST APIs. (List of methods.)
这篇关于Azure Notification Hubs程序包是否与.NET Core兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!