如何下载VisualStudio2019离线安装程序

我要在我的 PC 上安装 Visual Studio 2019 社区版(最新版本)。我在 google 中找到了具有在线安装程序 (1376 KB) 大小的链接。我想下载 Visual Studio 2019 社区版的离线安装程序。请分享我是离线安装程序的下载链接

回答

Microsoft 不再提供脱机安装程序,例如.ISOVisual Studio 的图像——而是提供 了让您承担创建脱机安装程序的负担的说明。您需要使用--layout命令行参数,然后运行下载的安装程序。

  1. 下载和缓存离线文件:
    vs_community.exe --layout f:vslayout.2019 --lang en-US
  1. 从缓存目录运行
    f:
    cd vslayout.2019
    vs_community.exe --noWeb

注意:更改驱动器F以匹配系统上为 MSVC 2019 提供约 35 GB 可用空间的驱动器。请参阅命令行参数说明以仅选择 C++、.NET 等选项。

您可以通过以下方式获得有关安装程序命令行参数的帮助:

vs_community --help

相关的布局命令是:

    command-line option     Description
    --layout <dir>          Specifies a directory to create an offline install cache.
    --lang <locales>        Used with --layout to prepare an offline install cache with resource packages with the specified language(s). See a full list of supported language-locales below.
    --add <workload>        One or more workload or component IDs to add. The required components of the artifact are installed, but not the recommended or optional components. You can control additional components globally using --includeRecommended and/or --includeOptional. For finer-grained control, you can append ;includeRecommended or ;includeOptional to the ID (for example, --add Workload1;includeRecommended or --add Workload2;includeOptional).
                            Note: If --add is used, only the specified workloads and components and their dependencies are downloaded. If --add is not specified, all workloads and components are downloaded to the layout.
    --includeRecommended    Includes the recommended components for any workloads that are installed, but not the optional components. The workloads are specified either with --allWorkloads or --add.
    --includeOptional       Includes the recommended and optional components for any workloads being included in the layout. The workloads are specified with --add.
    --keepLayoutVersion     Apply changes to the layout without updating the version of the layout.
    --verify                Verify the contents of a layout. Any corrupt or missing files are listed.
    --fix                   Verify the contents of a layout. If any files are found to be corrupt or missing, they are redownloaded. Internet access is required to fix a layout.
    --clean <paths to catalogs>


以上是如何下载VisualStudio2019离线安装程序的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>