Microsoft.Azure.NotificationHubs 1.0.9是否与.NET Core 2.0兼容?

编程入门 行业动态 更新时间:2024-10-13 10:23:06
本文介绍了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?

推荐答案

.NET标准兼容的NuGet 现在可用.它将允许将通知中心与.NET核心一起使用.

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兼容?

本文发布于:2023-11-13 22:51:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585538.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NotificationHubs   Azure   Microsoft   Core   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!