[英]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.