Type universe cannot resolve assembly: System.Configuration AND Cannot resolve Assembly or Windows Metadata file 'System.Configuration.dll

前端 未结 5 1548
轮回少年
轮回少年 2021-02-05 09:14

I am developing UWP App via VS2015 in Win10. My App was running perfect, but just today when I start running my App, even I didn\'t make changes of such ... and It shows 2 error

5条回答
  •  野性不改
    2021-02-05 09:50

    UWP C# XAML App, MVS2017

    I had a similar issue today, with the following error when building, after installing a new NUGET package (concretely NUGET package Microsoft.Toolkit.Uwp.UI.Controls):

    "cannot resolve assembly or windows metadata file 'type universe cannot resolve assembly: netstandard, version=2.0.0.0, culture=neutral, …"
    

    It turned out to be an incompatibility between NUGET package versions. I found out by fidgetting a bit in NUGET package manager with the package versions. A bit of trial and error, and I found out that by downgrading the version of the newly installed package, and upgrading the version of another package (in this case NewtonSoft.Json), I started building normally without errors or warnings...

提交回复
热议问题