我有一個簡單的項目,我收到了數千個錯誤,很可能是因爲一些UWP/.NET Core依賴性問題。該project.json文件非常簡單:簡單的UWP項目造成了大量衝突
{
"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": {}
}
}
這些都是我得到的錯誤:錯誤的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).
我怎樣才能解決這個矛盾?
我試圖從%userprofile%\ nuget \ packages中刪除所有緩存的軟件包,以防萬一它們損壞,但沒有做任何事情,丟失的部分被重新下載並且錯誤仍然存在 – Haukman