PDFNet Nuget Library 与 UAP 版本=v10.0 不兼容



我正在使用一个Windows桌面应用程序,它使用的是PDFtron nuget库。我正在使用带有.Net Core版本的Visual Studio 2017作为2.0.5。
要编译项目,我需要添加对指定 PDFTron Nuget 库的引用。但是每当我尝试安装此软件包时,我都会收到以下错误,指出它不兼容。由于几乎 80% 的项目都引用了该库,因此我无法将其更改为其他内容。

Restoring packages for 'ABCProject'.
Restoring packages for C:Usersxxxxxxxxx...
PDFNet 6.7.1.63077 is not compatible with UAP,Version=v10.0.
Some packages are not compatible with UAP,Version=v10.0.
PDFNet 6.7.1.63077 is not compatible with UAP,Version=v10.0 (win10-arm).
Some packages are not compatible with UAP,Version=v10.0 (win10-arm).
PDFNet 6.7.1.63077 is not compatible with UAP,Version=v10.0 (win10-arm-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-arm-aot).
PDFNet 6.7.1.63077 is not compatible with UAP,Version=v10.0 (win10-x64).
Some packages are not compatible with UAP,Version=v10.0 (win10-x64).
PDFNet 6.7.1.63077 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-x64-aot).
PDFNet 6.7.1.63077 is not compatible with UAP,Version=v10.0 (win10-x86).
Some packages are not compatible with UAP,Version=v10.0 (win10-x86).
PDFNet 6.7.1.63077 is not compatible with UAP,Version=v10.0 (win10-x86-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-x86-aot).
Package restore failed for 'ABCProject'.
Package restore failed. Rolling back package changes for 'ABCProject'.
========== Finished ==========

我需要做什么才能使我的项目与 UWP 兼容。(我已经阅读了有关将库迁移到 .NET core 的信息,但不确定它在我的情况下如何工作。

PDFTron有一个单独的UWP特定SDK,目前只能通过填写评估表来获得。

请填写此表单,系统将为你提供 UWP SDK 链接。https://www.pdftron.com/pdfnet/mobile/request_trial.html

错误消息表示库与 UWP 项目不兼容。许多 .net 框架库不支持 UWP 项目。它是一个开源库,您可以下载其源代码并自行编译兼容的软件包。

例如,最新的 UWP 目标版本 16299,它支持 .Net 标准 2.0。因此,您可以编译一个 .Net 标准 2.0 库。有关更多详细信息,请参阅移植到 .NET Core - 库。

如果它不是开源项目,你可以与其所有者联系,让所有者发布 UWP 的新版本。

另一种选择是,你可以将中转的 Windows 运行时组件用于旁加载的 UWP 应用,但如果使用中转的 Windows 运行时组件,则只能旁加载 UWP 应用,它将无法发布到 Windows 应用商店。

最新更新