简体   繁体   English

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

[英]Xamarin UWP project is not being built after creating in Visual Studio 2015

I installed Xamarin for Visual Studio 2015 and I created Xamarin.Forms Portable project. 我为Visual Studio 2015安装了Xamarin,并创建了Xamarin.Forms Portable项目。 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 . 但是我在UWP项目中遇到错误: Error Type universe cannot resolve assembly: System.Runtime, Version=4.0.0.0, in Visual Studio 2015

What is the problem? 问题是什么?

The solution was simple. 解决方案很简单。 I installed Mirosoft.NETCore.UniversalWindowsPlatform package via the Package Manager Console: 我通过Package Manager控制台安装了Mirosoft.NETCore.UniversalWindowsPlatform包:
PM> Install-Package Microsoft.NETCore.UniversalWindowsPlatform

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

We had it working in Visual Studio, but failing in command line. 我们在Visual Studio中工作,但在命令行中失败。 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. 原因是我们使用的是旧版本的nuget.exe,这导致我们的F#假脚本使用msbuild 14而不是15。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM