Microsoft.Azure.NotificationHubs 1.0.9是否与.NET Core 2.0兼容? [英] Is Microsoft.Azure.NotificationHubs 1.0.9 compatible with .NET Core 2.0?

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

问题描述

我们正在将NotificationHubs版本1.0.9与.NetCore 2.0和.Net Framework 4.7一起使用.

We are using NotificationHubs version 1.0.9 with .NetCore 2.0 and .Net Framework 4.7.

在编译时,我们会收到以下警告:

At compile time, we get this warning:

软件包Microsoft.Azure.NOtificationHubs 1.0.9已使用'.NETFramework,version = 4.6.1'而不是项目目标框架'.NETCoreApp,version = 2.0进行了还原.此软件包可能与您的项目不完全兼容."

"Package Microsoft.Azure.NOtificationHubs 1.0.9 was restored using '.NETFramework, version=4.6.1' instead of the project target framework '.NETCoreApp, version=2.0. this package may not be fully compatible with your project."

所有内容仍在构建中,但是在运行时调用此调用时:

Everything is still built, but at runtime when this call is invoked:

RegistrationDescription hubRegistration = await hubClient.CreateAppleNativeRegistrationAsync(device.DeviceToken);  //hubClient is NotificationHubClient

我们收到此错误:

以前有没有人遇到过这个问题,并且知道如何解决?

Has anyone encountered this before and have any idea how to fix it?

推荐答案

A preview version of a .NET Standard compatible NuGet is now available. It will allow using Notification Hubs with .NET core.

这篇关于Microsoft.Azure.NotificationHubs 1.0.9是否与.NET Core 2.0兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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