大网数据广告活动
Web服务器与PHP

Set Up Visual Studio on an Offline Machine

· 52CE 我爱测

Describes how to set up Visual Studio on an offline machine.

To set up Visual Studio on an offline machine, follow these steps:

  1. Download the Visual Studio installer from the Visual Studio page.

  2. Create an offline installer using the following command line. In this example, vs_professional.exe is the Professional edition of Visual Studio, and VS2022Offline is the folder where you want to create the layout.

    "vs_professional.exe" --LayOut "C:\Temp\VS2022Offline" --Lang "en-US"
    
  3. After successfully creating the offline installer for Visual Studio, copy C:\Temp\VS2022Offline to the target offline machine.

  4. Once the C:\Temp\VS2022Offline folder is copied to the target offline machine, execute the following command line from an administrator command prompt:

    "C:\Temp\VS2022Offline\vs_professional.exe" --noWeb --channelURI "C:\Temp\VS2022Offline\channelManifest.json"
    

    For more information on the command-line parameters, see Use command-line parameters to install, update, and manage Visual Studio.

  5. Follow the remaining instructions in the setup wizard to complete the installation.

  6. Once the installation is completed successfully, open any browser and browse to the Microsoft 365 admin center.

  7. Sign in with your Visual Studio subscription account.

  8. Navigate to the Downloads and Keys tab.

  9. Search for Visual Studio Professional 2022 and select Key.

  10. Select the 25-digit volume license key and copy it.

  11. Launch the Visual Studio shortcut as an administrator.

  12. On the menu bar, select Help > Register Product.

  13. Select the Unlock with a Product Key link.

  14. Enter the 25-digit product key, and then select Apply.

More information

Create an offline installation package of Visual Studio for local installation

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 12/27/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。