A few weeks ago I started building a REST webservice as a Windows UWP app (if you’re interested, it’s hosted on github). This morning I wanted to add some unit-tests, but somehow couldn’t build anymore. I got this error:
Type universe cannot resolve assembly: System.Configuration, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
That’s weird. I didn’t add any reference what so ever… or did I? Well I was sure I didn’t do it on purpose, but my project file was changed. When comparing the differences I noticed the addition of a reference to “Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll”. This wasn’t the first test in my project, so why would he add this now.
The cause: I used the testc snippet which added the reference and that reference isn’t compatible with the Windows 10 UWP project type. In the end I just removed the reference and that solved it all.