在Visual Studio 2015中创建后,未构建Xamarin UWP项目

我为Visual Studio 2015安装了Xamarin,我创建了Xamarin.Forms Portable项目。 之后我尝试构建解决方案。

但是我在UWP项目中遇到错误: Error Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, in Visual Studio 2015

问题是什么?

解决方案很简单。 我通过Package Manager控制台安装了Mirosoft.NETCore.UniversalWindowsPlatform包:
PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform

如果您安装了最新版本的NETCore.UniversalWindowsPlatform但仍然无法正常工作,请确保您使用的是最新的nuget。

我们在Visual Studio中工作,但在命令行中失败。 原因是我们使用的是旧版本的nuget.exe,这导致我们的F#假脚本使用msbuild 14而不是15。