如何获得适用于Visual Studio 2017的Offline Instller? [英] How can I get Offline Instller for Visual Studio 2017?

查看:89
本文介绍了如何获得适用于Visual Studio 2017的Offline Instller?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近尝试安装 Visual Studio 2017 .但是没有离线安装程序.如何获得离线安装程序. 我还尝试安装 Xamarin .即使我拥有最新的 Android SDK ,它仍要求我再次下载 Android SDK .该如何纠正?

I recently try to install Visual Studio 2017. But there is no offline installer. How to get offline installer for it. I also tried to install Xamarin. Eventhough I have latest Android SDK, it ask me to download Android SDK again. How to rectify it?

谢谢.

推荐答案

要生成脱机安装程序,您首先需要下载相应的在线安装程序,该安装程序将为您提供类似于以下其中一个的安装文件:

To produce an offline installer you first need to download the corresponding online installer, which will give you an installation file similar to one of these:

  • vs_enterprise.exe-Visual Studio 2017企业版,在此处下载
  • vs_professional.exe-Visual Studio 2017专业版,在此处下载
  • vs_community.exe-Visual Studio 2017社区版,在此处下载/li>
  • vs_enterprise.exe - Visual Studio 2017 Enterprise, download here
  • vs_professional.exe - Visual Studio 2017 Professional, download here
  • vs_community.exe - Visual Studio 2017 Community Edition, download here

然后您要做的就是这个:

Then all you have to do is this:

vs_WHATEVER.exe --layout path-to-empty-directory

例如,要为Visual Studio 2017 Community Edition创建脱机安装程序,请首先下载在线安装程序,然后执行以下操作:

Example, to create an offline installer for Visual Studio 2017 Community Edition you first download the online installer, then you execute this:

vs_community.exe --layout d:\temp

这将用安装Visual Studio所需的所有文件填充D:\Temp.

This will fill D:\Temp with all the files necessary to install Visual Studio.

注意:安装程序将在其过程中打开一个控制台窗口,您需要等到该窗口关闭后才能安全使用此文件夹的内容.

Note: The installer will open a console window as part of its process, you need to wait until this window closes before you can safely use the contents of this folder.

根据可用的软件包,会有许多子目录,但是您还将下载的原始可执行文件放置在此目录中.从此目录执行此操作将使用提供的软件包进行安装.

There will be many sub-directories, depending on the packages available, but you will also have the original executable you downloaded placed into this directory. Executing this from this directory will install using the provided packages.

还请注意,默认情况下,除非您手动指定--add和程序包ID,否则将下载全部程序包.因此,您将获得完整的最新版本以脱机安装.但是,如果使用--add参数指定软件包,则将仅下载 指定的软件包.

Also note that by default, unless you manually specify --add and package id's, all the packages will be downloaded. You will thus get a complete and current version to install offline. However, if you specify packages with the --add parameter, only the specified packages will be downloaded.

来源:创建Visual Studio 2017的网络安装

这篇关于如何获得适用于Visual Studio 2017的Offline Instller?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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