Blogs Hub

by AskGif | Oct 26, 2018 | Category :coding

Xamarin.forms shared project gives error while creation

Xamarin.forms shared project gives error while creation

<p>Whenever I try to create a new xamarin.forms project it is giving error. The Error Details is as below,</p> <p>Xamarin.Forms.1.3.1.6296: Could not install package '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. For more information, contact the package author"</p> <pre class="language-csharp"><code>"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'":</code></pre> <p>Any idea how I can resolve this issue?</p> <p>I have contact Xamarin Support as well but no luck.</p> <p>&nbsp;</p> <p>Solution:</p> <pre class="language-markup"><code>You need to update your nuget package manager. that will resolve the issue. open your visual studio go to tools -&gt; Extensions &amp; Updates -&gt; select updates -&gt; select visual studio gallery then update your nuget package manager. 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.</code></pre>

read more...