Azure 通知中心包是否与 .NET Core 兼容? [英] Is Azure Notification Hubs package compatible with .NET Core?

查看:35
本文介绍了Azure 通知中心包是否与 .NET Core 兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 .NET 核心应用程序,但我发现某些 Azure 包不兼容,例如 NotificationHubsSendGrid:

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?

谢谢!

推荐答案

[Update 11/30/2017] Microsoft.Azure.NotificationHubs 2.0.0-preview1 与 .NET Core 兼容刚刚发布.

[Update 11/30/2017] Microsoft.Azure.NotificationHubs 2.0.0-preview1 compatible with .NET Core has just been published.

[原始答案] 截至 2016 年 7 月中旬,Azure 通知中心 SDK 不适用于 .NET 核心.产品团队正在为此努力,但还没有预计到达时间.

[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:

  • 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 通知中心包是否与 .NET Core 兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆