zoukankan      html  css  js  c++  java
  • Install Visual Studio 2017 on low bandwidth or unreliable network environments

    Install Visual Studio 2017 on low bandwidth or unreliable network environments

    We recommend that you try the Visual Studio web installer—we think you'll find it a good experience for most situations.

    However, if your internet connection is unavailable or unreliable, you can use the command line to create a local cache of the files you need to complete an offline install. Here's how.

    Note

    If you are an enterprise administrator who wants to perform a deployment of Visual Studio 2017 to a network of client workstations that are firewalled from the internet, see our Create a network installation of Visual Studio 2017 and Install certificates required for Visual Studio offline installation pages.

    Step 1 - Download the Visual Studio bootstrapper

    Start by downloading the Visual Studio bootstrapper for your chosen edition of Visual Studio.

    Your setup file—or to be more specific, a bootstrapper file—will match or be similar to one of the following.

    EditionFile
    Visual Studio Community vs_community.exe
    Visual Studio Professional vs_professional.exe
    Visual Studio Enterprise vs_enterprise.exe

    Step 2 - Create a local install cache

    You must have an internet connection to complete this step. To create a local layout, open a command prompt and use one of the commands from the following examples. The examples here assume that you're using the Community edition of Visual Studio; adjust the command as appropriate for your edition.

    • For .NET web and .NET desktop development, run:

      vs_community.exe --layout c:vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US

    • For .NET desktop and Office development, run:

      vs_community.exe --layout c:vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Office --includeOptional --lang en-US

    • For C++ desktop development, run:

      vs_community.exe --layout c:vs2017layout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US

    • To create a complete local layout with all features (this will take a long time—we have lots of features!), run:

      vs_community.exe --layout c:vs2017layout --lang en-US

    If you want to install a language other than English, change en-US to a locale from the list at the bottom of this page. Use this list of the components and workloads available to further customize your installation cache as necessary.

    Important

    A complete Visual Studio 2017 layout requires at least 35 GB of disk space and can take some time to download. See Use command-line parameters to install Visual Studio 2017 for information on how to create a layout with only the components you want to install.

    Step 3 - Install Visual Studio from the local cache

    Tip

    When you run from a local install cache, setup uses the local versions of each of these files. But if you select components during installation that aren't in the cache, we attempt to download them from the internet.

    To ensure that you only install the files you've downloaded, use the same command-line options that you used to create the layout cache. For example, if you created a layout cache with the following command:

    vs_community.exe --layout c:vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US

    Use this command to run the installation:

    c:vs2017layoutvs_community.exe --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional

    Note

    If you get an error that a signature is invalid, you must install updated certificates. Open the Certificates folder in your offline cache. Double-click each of the certificate files, and then click through the Certificate Manager wizard. If asked for a password, leave it blank.

    List of language locales

    Language-localeLanguage
    cs-CZ Czech
    de-DE German
    en-US English
    es-ES Spanish
    fr-FR French
    it-IT Italian
    ja-JP Japanese
    ko-KR Korean
    pl-PL Polish
    pt-BR Portuguese - Brazil
    ru-RU Russian
    tr-TR Turkish
    zh-CN Chinese - Simplified
    zh-TW Chinese - Traditional

    Get support

    Sometimes, things can go wrong. If your Visual Studio installation fails, see the Troubleshooting Visual Studio 2017 installation and upgrade issues page. If none of the troubleshooting steps help, you can contact us by live chat for installation assistance (English only). For details, see the Visual Studio support page.

    Here are a few more support options:

    See also

  • 相关阅读:
    Python处理Excel文件
    WebSocket使用中Stomp Client连接报ERROR CODE 200的解决办法
    深入理解Java虚拟机——读书笔记
    主要排序算法的Java实现
    LeetCode 67 Add Binary
    LeetCode 206 单链表翻转
    POJ 2388
    POJ 1207 3N+1 Problem
    POJ 1008 Maya Calendar
    关于指针的一些基本常识
  • 原文地址:https://www.cnblogs.com/3dnc/p/9533197.html
Copyright © 2011-2022 走看看