Hau*_*man 5 nuget win-universal-app dnx
我有一个简单的项目,我收到了数以千计的错误,很可能是因为一些UWP/.NET Core依赖问题.project.json文件非常简单:
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
"Newtonsoft.Json": "8.0.3"
},
"frameworks": {
"uap10.0": {}
},
"runtimes": {
"win10-arm": {},
"win10-arm-aot": {},
"win10-x86": {},
"win10-x86-aot": {},
"win10-x64": {},
"win10-x64-aot": {}
}
}
Run Code Online (Sandbox Code Playgroud)
这些都是我得到 的错误:http://pastebin.com/WwPKzCgK错误示例:
Version conflict detected for System.Collections.
WebServer (? 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (? 5.0.0) -> Microsoft.NETCore.Runtime (? 1.0.0) -> Microsoft.NETCore.Runtime.CoreCLR-arm (? 1.0.0) -> System.Collections (= 4.0.10)
WebServer (? 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (? 5.0.0) -> Microsoft.NETCore (? 5.0.0) -> System.Collections (? 4.0.10).
Version conflict detected for System.Diagnostics.Debug.
WebServer (? 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (? 5.0.0) -> Microsoft.NETCore.Runtime (? 1.0.0) -> Microsoft.NETCore.Runtime.CoreCLR-arm (? 1.0.0) -> System.Diagnostics.Debug (= 4.0.10)
WebServer (? 1.0.0) -> Microsoft.NETCore.UniversalWindowsPlatform (? 5.0.0) -> Microsoft.NETCore (? 5.0.0) -> System.Diagnostics.Debug (? 4.0.10).
Run Code Online (Sandbox Code Playgroud)
我该如何解决冲突?
我不知道为什么我只在从 GitHub 下载的 Microsoft UWP 示例中遇到此问题,但为了解决此问题,我执行了以下操作:
这通常可以解决问题。
希望这可以帮助。
| 归档时间: |
|
| 查看次数: |
1323 次 |
| 最近记录: |