Is it possible to add just Xamarin support to existing Visual Studio 2008 installation?

十年热恋 提交于 2019-12-11 06:48:43

问题


I already have a fully functional Visual Studio 2008 installed on my system, complete with C# and VB .Net.

Now I need to just add Xamarin support to my existing installation. Is there a way to do this, without having to download Visual Studio again?

When I try to download Xamarin, it gives me a "Visual Studio Community 2017 Installer" with so many language components, that it is really difficult to identify the bare minimum I would need to create a Xamarin project.

Appreciate all guidance and clarifications.


回答1:


Xamarin supports Visual Studio 2015 and 2017:

Xamarin for Visual Studio supports any Visual Studio 2015 or 2017 (Community, Professional, and Enterprise).

To develop Xamarin.Forms apps for the Universal Windows Platform (UWP) requires Windows 10 with Visual Studio 2015 or 2017.

Due to network issues, I create offline installers for Visual Studio 2017 Community, Professional, and Enterprise via the -layout cmd-line option. This layout can be later updated as patches and new releases are released.

You can create an offline installer that contains the minimum installer setup for Xamarin by downloading either the vs_enterprise.exe, vs_professional.exe, or vs_community.exe from:

(Pick the correct one depending upon your license key otherwise you will have to start from scratch and re-download the whole thing.)

  • https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio

Then you can then:

  • Change the exe to one that you download
  • Change the language to only download the language(s) you want
  • Select the component ids, only Microsoft.VisualStudio.Workload.NetCrossPlat in this case to get just what is required to work with Xamarin (you can always add additional components to Visual Studio later...

ID: Microsoft.VisualStudio.Workload.NetCrossPlat

Description: Build cross-platform applications for iOS, Android or Windows using Xamarin.

& '.\vs_enterprise.exe' 
--layout C:\vs2017offline 
--lang en-US
--add Microsoft.VisualStudio.Workload.NetCrossPlat
--includeRecommended

Note: This will produce an vs2017offline directory that is about 2GB in size.

If you already have the Android SDK installed (via Android Studio or another Visual Studio install), you can create a layout that does not contain it. After installation and launching Visual Studio, you will need to assign the location of the Android SDK within the Xamarin setting.

& '.\vs_Enterprise15.4(preview).exe' 
--layout C:\vs2017offline15.4Preview 
--lang en-US 
--add Microsoft.VisualStudio.Workload.NetCrossPlat 
--add Component.Xamarin 
--add Component.Xamarin.Inspector 
--add Component.Xamarin.Profiler 
--add Component.Xamarin.RemotedSimulator 
--add Microsoft.VisualStudio.Component.FSharp 
--add Microsoft.VisualStudio.Component.Merq 
--add Microsoft.VisualStudio.Component.MonoDebugger 
--add Microsoft.VisualStudio.Component.NuGet 
--add Microsoft.VisualStudio.Component.Roslyn.Compiler 
--add Microsoft.VisualStudio.Component.Roslyn.LanguageServices 
--add Microsoft.VisualStudio.Component.Static.Analysis.Tools 
--add Microsoft.VisualStudio.Component.DiagnosticTools 
--add Microsoft.VisualStudio.Component.Graphics 
--add Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin 
--add Microsoft.VisualStudio.ComponentGroup.ArchitectureTools.Managed

Consult the following links to review options, component ids, etc..

  • https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio
  • https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise



回答2:


You are targeting Xamarin.iOS,Xamarin.Android or Xamarin.Forms? As per below system requirement, the minimal Visual Studio version that supported Xamarin is Visual Studio 2013 and it is only for Xamarin.iOS

Xamarin.iOS:

Xamarin.Android:

Xamarin.Forms:




回答3:


I'd say it's impossible, currently supported versions of Visual Studio are 2013+.



来源:https://stackoverflow.com/questions/46463803/is-it-possible-to-add-just-xamarin-support-to-existing-visual-studio-2008-instal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!