16
votes

I installed Xamarin for Visual Studio 2015 and I created Xamarin.Forms Portable project. After that I have tried to build solution.

But I got an error for UWP project: Error Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, in Visual Studio 2015.

What is the problem?

2
Check build config manager uwp selected or notVinoth Rajendran

2 Answers

23
votes

The solution was simple. I installed Mirosoft.NETCore.UniversalWindowsPlatform package via the Package Manager Console:
PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform

0
votes

If you have the newest version of NETCore.UniversalWindowsPlatform installed and it still isn't working, make sure that you're using the newest nuget.

We had it working in Visual Studio, but failing in command line. The reason was that we were using old version of nuget.exe, and this caused our F# fake script to use msbuild 14 instead of 15.