我想在我的项目中更新Microsoft.NETCore.UniversalWindowsPlatform Nuget,但我无法这样做。我目前在5.1.0上,并且正在尝试更新到5.2.2。我尝试更新时的输出如下所示:Microsoft.NETCore.UniversalWindowsPlatform 5.2.2 Nuget更新失败
Restoring packages for 'MyApp'.
Restoring packages for C:\Users\Shayon\uwp\src\MyApp\project.json...
System.Reflection.Emit.ILGeneration 4.0.1 provides a compile-time reference assembly for System.Reflection.Emit.ILGeneration on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-arm-aot.
Some packages are not compatible with UAP,Version=v10.0 (win10-arm-aot).
System.Reflection.Emit.ILGeneration 4.0.1 provides a compile-time reference assembly for System.Reflection.Emit.ILGeneration on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x64-aot.
Some packages are not compatible with UAP,Version=v10.0 (win10-x64-aot).
System.Reflection.Emit.ILGeneration 4.0.1 provides a compile-time reference assembly for System.Reflection.Emit.ILGeneration on UAP,Version=v10.0, but there is no run-time assembly compatible with win10-x86-aot.
Some packages are not compatible with UAP,Version=v10.0 (win10-x86-aot).
Package restore failed for 'MyApp'.
Package restore failed. Rolling back package changes for 'MyApp'.
========== Finished ==========
我不太确定如何解释此错误消息。是否说UWP不支持反射?
我试过清理我的nuget缓存并恢复。我也尝试卸载5.1.0并直接安装到5.2.2。我使用的是Nuget版本3.4.4和VS 2015.我也应该提到,我已经能够在同一个解决方案中更新nuget,以解决其他一些问题。如果这是我的有关万能的Windows最低版本(10.0; Build 10240)
,我的目标版本是(10.0; Build 10586)
任何想法是怎么回事出错吗?
这对我有用,但不幸的是,这不得不更新框架。 – CrusherJoe