简体   繁体   English

Xamarin.forms共享项目在创建时给出错误

[英]Xamarin.forms shared project giving error while creation

When I create a new xamarin.forms project it is giving error. 当我创建一个新的xamarin.forms项目时,它给出了错误。

"Could not add all required packages to the project. The following packages failed to install from 'C:\\PROGRAM FILES (X86)\\MICROSOFT VISUAL STUDIO 12.0\\COMMON7\\IDE\\EXTENSIONS\\XAMARIN\\XAMARIN\\3.9.236.0\\Packages'": “无法将所有必需的软件包添加到项目中。以下软件包无法从'C:\\ PROGRAM FILES(X86)\\ MICROSOFT VISUAL STUDIO 12.0 \\ COMMON7 \\ IDE \\ EXTENSIONS \\ XAMARIN \\ XAMARIN \\ 3.9.236.0 \\ Packages'安装:

Xamarin.Forms.1.3.1.6296: Could not install package 'Xamarin.Forms 1.3.1.6296'. Xamarin.Forms.1.3.1.6296:无法安装软件包“ Xamarin.Forms 1.3.1.6296”。 You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. 您正在尝试将此软件包安装到以“ Xamarin.iOS,Version = v1.0”为目标的项目中,但是该软件包不包含任何与该框架兼容的程序集引用或内容文件。 For more information, contact the package author" 有关更多信息,请与软件包作者联系。”

Any idea how I can resolve this issue? 您知道如何解决此问题吗?

I have contact Xamarin Support as well but no luck 我也有联系Xamarin支持,但没有运气

You need to update your nuget package manager. 您需要更新您的nuget软件包管理器。 that will resolve the issue. 这样可以解决问题。

Source: https://askgif.com/blog/146/why-xamarin-forms-shared-project-giving-error-while-creation/ 资料来源: https : //askgif.com/blog/146/why-xamarin-forms-shared-project-giving-error-while-creation/

open your visual studio go to tools -> Extensions & Updates -> select updates -> select visual studio gallery then update your nuget package manager. 打开您的Visual Studio,然后转到工具->扩展和更新->选择更新->选择Visual Studio库,然后更新您的Nuget程序包管理器。

This will resolve your issue. 这样可以解决您的问题。 I had the same problem, after researching a lot i found this solution. 经过大量研究后,我遇到了同样的问题,发现了该解决方案。

Hope this will help you to resolve your issue. 希望这可以帮助您解决问题。

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

相关问题 在Xamarin.Forms中创建新项目时出现错误 - Getting Error while creating new project in Xamarin.Forms 我可以有一个带有PCL和共享代码的Xamarin.Forms项目吗? - Can I have a Xamarin.Forms project with PCLs and shared code? C#/ Xamarin.Forms共享项目中的其他文件 - Miscellaneous files in C#/Xamarin.Forms Shared Project Xamarin.Forms-从共享项目加载字体 - Xamarin.Forms - Loading Font from Shared Project 在项目 Xamarin.Forms 中构建时出现错误“值不能为空参数名称:方​​法” - Error “Value cannot be null parameter name: method” while building in project Xamarin.Forms 在Android上关闭应用程序后,Prism + Xamarin.Forms Project错误? - Prism + Xamarin.Forms Project error after closing app on Android? 空白 Xamarin.Forms 项目上缺少 netstandard 2.0 程序集错误 - Missing netstandard 2.0 assembly error on blank Xamarin.Forms project 错误“框架不在模块中”。 在 Xamarin.Forms - Android 项目中 - Error "Frame not in module." in Xamarin.Forms - Android project 使用Prism为Xamarin.Forms创建新项目时出错 - Error on creating new project with Prism for Xamarin.Forms 热门在编译Xamarin.Forms项目时修复'VerifyVersionsTask'错误 - Hot to fix 'VerifyVersionsTask' error at compile Xamarin.Forms project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM