gpt4 book ai didi

.net - 有没有办法通过 LAN 缓存和分发 Visual Studio 更新?

转载 作者:可可西里 更新时间:2023-11-01 09:28:23 26 4
gpt4 key购买 nike

visual studio 的每次更新在我的工作中都是一样的。最终,一名开发人员在等待大量文件下载和复制完成的更新过程中陷入困境(由于对带宽的影响,当更多开发人员也进行更新时,情况会变得更糟)。

有没有办法通过本地网络缓存和分发这些更新,从而减少对带宽、生产力等的影响,比如 WSUS?

最佳答案

请参阅 MSDN 上关于“Installing Visual Studio”的说明

Downloading Visual Studio for an offline installation


In most cases, you can install Visual Studio from the download site with no problems. However, in some cases, you may want to download all the update packages before you install them (for example, to install on multiple machines or on an offline machine). The following steps explain how to download all the update packages that you need for an offline installation.

  1. After you download the update executable from the MSDN website to a location on your file system, run the following command at a command prompt: <executable name> /layout.

    This command downloads all the packages for the installation.

    By using the /layout switch, you can download almost all the core installation packages, not just the ones that apply to the download machine. This approach gives you all the files that you need to run this update anywhere and may be useful if you want to install components that weren't installed originally.

  2. After you run the command, you should be prompted for the download location. Enter the location, and then choose Download.

  3. When the package download is successful, you should see a Visual Studio screen that says Setup Successful! All specified components have been acquired successfully.

  4. In the file location that you specified, find the executable file and the package folder. This is everything you need to copy to a shared location or install media.

    Caution: Currently, the Android SDK does not support an offline installation experience. If you install Android SDK Setup items on a computer that is not connected to the internet, the installation might fail.

  5. You can now run the installation from the file location or the install media.

这个过程可以用更新exe来完成

VS2015.1.exe /layout C:\VSUpdate\2015.1

这会将更新文件下载并复制到 C:\VSUpdate\2015.1然后可以将其放在网络共享上供其他开发人员使用。

关于.net - 有没有办法通过 LAN 缓存和分发 Visual Studio 更新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34272107/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com