Xamarin.Forms无法安装软件包 [英] Xamarin.Forms could not install package

查看:224
本文介绍了Xamarin.Forms无法安装软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xamarian工作室中创建新解决方案时,出现此错误

When creating a new solution within Xamarian studio I get this error


无法安装软件包 Xamarin.Forms 1.0.6186。您正在尝试将此软件包安装到以 .NETFramework,Version = v4.5,Profile = Profile78为目标的项目中,但是该软件包不包含任何与该框架兼容的程序集引用或内容文件。有关更多信息,请与软件包作者联系。

Could not install package 'Xamarin.Forms 1.0.6186'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Xamarian Forms是否要求将.Net包含在其中的某个特定版本。解决方案?我曾尝试搜索他们的文档,但只看到了市场营销资料,而不是真正的深入文档。

Is there a certain version of .Net that Xamarian Forms requires for it to be included in the solution? I've tried searching in their documentation but I'm only seeing marketing and not real in depth documentation.

推荐答案

使用Visual Studio发生类似的问题,我发现PCL中的以下组合有效:

I had a similar issue using Visual Studio and I've found that the following combination in the PCL works:


  • .NET Framework 4.5

  • Windows Phone Silverlight 8

  • Xamarin.Android

  • Xamarin.iOS

  • .NET Framework 4.5
  • Windows Phone Silverlight 8
  • Xamarin.Android
  • Xamarin.iOS

这篇关于Xamarin.Forms无法安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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