Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 errors and is not running now.

1. Type universe cannot resolve assembly: System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.      

2. Cannot resolve Assembly or Windows Metadata file 'System.Configuration.dll'  

What is these errors ... I didn't find the satisfactory solution

enter image description here

like image 938
Zia Ur Rahman Avatar asked Mar 31 '16 11:03

Zia Ur Rahman


3 Answers

I was able to resolve this by checking "Automatically check for missing packages during build in Visual Studio" (the "Allow NuGet to download missing packages" was already checked), then rebuilding. You can find these settings in Tools --> NuGet Package Manager --> Package Manager Settings.

like image 52
Robert Corvus Avatar answered Nov 03 '22 23:11

Robert Corvus


I fixed a similar problem by deleting the C:\Users\%username%.nuget directory.

like image 4
arni Avatar answered Nov 03 '22 23:11

arni


See this link, need to remove "Microsoft.VisualStudio.QualityTools.UnitTestFramework"

like image 3
Tonghua Avatar answered Nov 03 '22 23:11

Tonghua