【发布时间】:2016-02-24 15:08:29
【问题描述】:
我了解到 dotnet 是开源的,并且通过 nuget 而不是整体安装程序通过粒度包分发。
我创建了一个简单的 UWP 应用程序,我在 project.json 中看到的是
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
}
当我尝试通过 nuget 安装预发布 System.Collections 时,我得到了关注
Version conflict detected for System.Private.Uri.
SM.W10 (≥ 1.0.0) -> System.Collections (≥ 4.0.11-beta-23516) -> System.Runtime (≥ 4.0.21-beta-23516) -> System.Private.Uri (≥ 4.0.1-beta-23516)
SM.W10 (≥ 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (≥ 5.0.0) -> Microsoft.NETCore.Runtime (≥ 1.0.0) -> Microsoft.NETCore.Runtime.CoreCLR-arm (≥ 1.0.0) -> System.Private.Uri (= 4.0.0).
我觉得我应该以某种方式解开Microsoft.NETCore.UniversalWindowsPlatform,但它有很多层次的嵌套,只有深度嵌套的Microsoft.NETCore.Runtime.CoreCLR-arm 对 System.Private.Url 有严格的版本
有什么方法可以轻松更新 System.Collections 吗?
【问题讨论】:
-
我认为您可以在依赖项下放置一个条目,以引用您想要的 System.Collection 版本。只需将其放在 .NetCore 条目下即可
标签: .net nuget windows-10 uwp .net-core