Visual Studio 2017 - Install Xamarin Forms 3 NuGet package into solution - xamarin

I have Visual Studio 2017 with Xamarin installed.
I want to update to Xamarin.Forms 3
I understand that I have to use NuGet to install the Xamarin Forms 3 NuGet package.
However, to install to NuGet package I need to open a solution in Visual Studio first.
When I open a solution and install the NuGet package - will this package (Forms 3) only be available for that solution?
I need Forms 3 to be available for all new solutions that I will create in future...

If you have at least Visual Studio 2017 15.7 installed then the latest Cross-Platform project templates provided by Xamarin use the Xamarin.Forms 3.0 NuGet package.
For existing projects you have created you would need to update the Xamarin.Forms NuGet package yourself.

Related

Not finding Microsoft.Maui.Controls.Maps NuGet package

I installed latest visual studio preview (Visual Studio Community 2022 Preview - 17.4.0 Preview 3) with .NET 7 include. I started a new project to experience the new Map control and selected the target .NET to be net7.0. Now when searching for the NuGet package Microsoft.Maui.Controls.Maps I'm unable to find it in the NuGet solution. How and where can I install it?
Maps is only available as a pre-release at the moment of writing: https://www.nuget.org/packages/Microsoft.Maui.Controls.Maps
You need to tick the check box that says Include prerelease when you search for NuGets in the Package Manager.

Xamarin SDK in Visual Studio

Visual Studio can have multiple Extension SDKs which are used to ease the development.
Is Xamarin SDK belongs to one of those Extension SDKs of Visual Studio
IDE?
Xamarin SDK is an open-source framework to develop mobile application. And it is bundled as a free tool within Microsoft Visual Studio's integrated development environment.
To answer your question, Yes Xamarin SDK is a part of SDKs in Visual Studio.
Visual Studio use the NuGet Package Manager to Install and manage packages(Like the Xamarin SDK and other Extension SDKs you mentioned in your question).
Those packages are added to your project and you can use them to develop your project.
Xamarin is installed by default if you create a Xamarin.forms project in Visual-Studio.
Xamarin is shipped as a Visual Studio Workload. Although this documentation page doesn't show the individual SDK packages, they are included in the component: Component.Xamarin.
i.e. Xamarin.Android.Sdk / Xamarin.VisualStudio.Apple.Sdk / etc
If you installed Visual Studio 2019 and watched the installer, you'd see the names of these packages as they progress!
Otherwise you can just go into Visual Studio and click on Help -> About Visual Studio and see all of the various packages!

Visual studio 2013 Premium - project templates packages versions

I am using Visual Studio 2013 Premium. When I create a new Web API project for example all packages are with old versions and need an update. Is there a way to set VS or NuGet maybe to create the new project with latest versions of the packages?
No, templates packaged in Visual Studio define which versions of the package that they want to pick. A template is not guaranteed to work with the latest updates, since newer packages could have breaking changes. Hence, the onus is on the developer to update the package as they see fit.

How to install Xamarin for Visual Studio 2015 when Visual Studio 2013 is installed too?

I install both Visual Studio 2013 and 2015. I need install Xamarin for VS 2015. But I can't do it because by default it's installing for VS 2013.
I think the link below may assist you:
first, uninstall everything related to xamarin.
second, open vs2015 and create new andriod project
third, when project is created you'll see instructions to downloading xamarin.
Download the xamarin installer for vs2015, install it, after installation - open vs2015 and see the newly added projects.
http://www.infragistics.com/community/blogs/blagunas/archive/2014/11/14/installing-xamarin-for-visual-studio-2015-preview-side-by-side-with-visual-studio-2013.aspx

xamarin studio, add nuget plugin

I've found a NuGet plugin I would like to install, but using Xamarin Studio on Mac I don't have Package Manager Console so i can't type the
Install-Package My.Wanted.Plugin -Version 1.0.0.0
According to is there a package manager console in xamarin studio there is a workaround, but it didn't work for me.
So my questions is; is there another (probably longer and more complex) way to install NuGet plugins to Xamarin Studio?
Thanks in advance!
For Xamarin Studio 5.9 you can use version 0.6.1 of the NuGet extensions addin. Currently this is not currently available from the main MonoDevelop addin repository but it is available to download from GitHub.
Download the mpack file, then open the Add-in Manager and select Install from file. You may need to restart Xamarin Studio afterwards.

Resources