问题描述
我为 Visual Studio 2015 安装了 Xamarin,并创建了 Xamarin.Forms Portable 项目.在那之后,我尝试构建解决方案.
I installed Xamarin for Visual Studio 2015 and I created Xamarin.Forms Portable project. After that I have tried to build solution.
但是我遇到了 UWP 项目的错误:Error Type Universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, in Visual Studio 2015
.
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
.
有什么问题?
推荐答案
解决方案很简单.我通过包管理器控制台安装了 Mirosoft.NETCore.UniversalWindowsPlatform 包:
下午>安装包 Microsoft.NETCore.UniversalWindowsPlatform
The solution was simple. I installed Mirosoft.NETCore.UniversalWindowsPlatform package via the Package Manager Console:PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform
这篇关于在 Visual Studio 2015 中创建后未构建 Xamarin UWP 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!