在 Visual Studio 2015 中创建后未构建 Xamarin UWP 项目 [英] Xamarin UWP project is not being built after creating in Visual Studio 2015

查看:22
本文介绍了在 Visual Studio 2015 中创建后未构建 Xamarin UWP 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为 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 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆