UWP 6.2.2 和 System.Runtime.CompilerServices.Unsafe 不兼容

UWP 6.2.2 and System.Runtime.CompilerServices.Unsafe Incompatibility

我是 UWP 平台的新手,在尝试创建我的应用程序包时遇到了一些麻烦。发布版本工作正常,但是当我尝试制作一个应用程序包进行侧面加载时,我收到以下错误。

Severity    Code    Description Project File    Line    Suppression State
Error       Payload contains two or more files with the same destination path 'System.Runtime.CompilerServices.Unsafe.dll'. Source files: 
C:\Users\micha\.nuget\packages\runtime.win10-x64-aot.microsoft.netcore.universalwindowsplatform.2.2\runtimes\win10-x64-aot\lib\uap10.0.15138\System.Runtime.CompilerServices.Unsafe.dll
C:\Users\micha\.nuget\packages\system.runtime.compilerservices.unsafe.5.1\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll   AN Solve-IT         

我的项目中似乎有一些依赖项包含相同的 class,但我不确定如何解决该问题。

在我的项目中,我安装了以下内容。

Microsoft.NETCore.UniversalWindowsPlatform 6.2.2
Microsoft.EntityFrameworkCore.Sqlite 2.2.0
Newtonsoft.JSON 12.0.1

我还有两个配套项目。一个是 class 库,另一个是迁移应用程序。他们结合使用以下内容。

Microsoft.EntityFrameworkCore.Tools 2.2.0
Microsoft.NETCore.App 2.1.0
NETStandard.Library 2.0.3

正如我上面所说,我可以看到这两个库中似乎存在文件冲突,但我不确定如何处理该问题。任何帮助将不胜感激!

---更新---

我按照下面的建议将我的 UWP 框架降级到 2.1.9,但是当我这样做时,我收到了以下错误。

Severity    Code    Description Project File    Line    Suppression State
Error       One of your dependencies requires the .NET Framework, but the .NET Framework could not be found in the NuGet packages installed in this project.  Please install the appropriate .NET Framework packages required by your dependency

我已确认我安装了 .NET 框架,并且在我的项目中正确引用了它。我可以在我的机器上进行本地构建和 运行。关于这可能是什么有什么想法吗?

将您的 Microsoft.NETCore.UniversalWindowsPlatform 软件包降级到最新的稳定版 6.1.9,因为您的当前版本已被清除 having an issue with it

更新: 如果出现 post 提到的错误,也将其他软件包一一降级。