是否可以将 Xamarin 支持添加到现有的 Visual Studio 2008 安装中? [英] Is it possible to add just Xamarin support to existing Visual Studio 2008 installation?

查看:36
本文介绍了是否可以将 Xamarin 支持添加到现有的 Visual Studio 2008 安装中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统上已经安装了一个功能齐全的 Visual Studio 2008,包括 C# 和 VB .Net.

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

现在我只需要将 Xamarin 支持添加到我现有的安装中.有没有办法做到这一点,而不必再次下载 Visual Studio?

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?

当我尝试下载 Xamarin 时,它为我提供了一个Visual Studio Community 2017 安装程序",其中包含许多语言组件,因此很难确定创建 Xamarin 项目所需的最低限度.

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.

感谢所有指导和说明.

推荐答案

Xamarin 支持 Visual Studio 2015 和 2017:

Xamarin supports Visual Studio 2015 and 2017:

Xamarin for Visual Studio 支持任何 Visual Studio 2015 或 2017(社区、专业和企业).

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

要为通用 Windows 平台 (UWP) 开发 Xamarin.Forms 应用程序,需要 Windows 10 和 Visual Studio 2015 或 2017.

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

由于网络问题,我通过 -layout cmd-line 选项为 Visual Studio 2017 Community、Professional 和 Enterprise 创建了离线安装程序.此布局可以在以后随着补丁和新版本的发布而更新.

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.

您可以通过下载 vs_enterprise.exevs_professional.exe、或 vs_community.exe 来自:

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.)

然后你可以:

  • 将 exe 更改为您下载的 exe
  • 更改语言以仅下载您想要的语言
  • 选择组件 ID,在本例中仅选择 Microsoft.VisualStudio.Workload.NetCrossPlat 以获得使用 Xamarin 所需的内容(您可以随时向 Visual Studio 添加其他组件...
  • 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

ID: Microsoft.VisualStudio.Workload.NetCrossPlat

说明:使用 Xamarin 为 iOS、Android 或 Windows 构建跨平台应用程序.

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

注意:这将生成一个 2GB 大小的 vs2017offline 目录.

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

如果您已经安装了 Android SDK(通过 Android Studio 或其他 Visual Studio 安装),您可以创建一个不包含它的布局.安装并启动 Visual Studio 后,您需要在 Xamarin 设置中分配 Android SDK 的位置.

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

查阅以下链接以查看选项、组件 ID 等.

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

这篇关于是否可以将 Xamarin 支持添加到现有的 Visual Studio 2008 安装中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆