透過新增或移除工作負載和元件來修改 Visual StudioModify Visual Studio by adding or removing workloads and components

因為修改 Visual Studio 很容易,所以在您需要它時,它只包含您需要的內容。It's easy to modify Visual Studio so that it includes only what you want, when you want it. 若要執行修改作業,請開啟 Visual Studio 安裝程式來新增或移除工作負載和元件。To do so, open the Visual Studio Installer to add or remove workloads and components.

我們不僅讓您可以更輕鬆地將 Visual Studio 個人化以配合您要完成的工作,也讓您可以更輕鬆地自訂 Visual Studio。Not only have we made it easier for you to personalize Visual Studio to match the tasks you want to accomplish, we've also made it easier to customize Visual Studio, too. 若要這樣做,請啟動新的 Visual Studio 安裝程式並進行所需的變更。To do so, start the new Visual Studio Installer and make the changes you want.

方式如下:Here's how.

修改工作負載Modify workloads

工作負載包含您使用之程式設計語言或平台所需的功能。Workloads contain the features you need for the programming language or platform that you're using. 您可以使用工作負載來修改 Visual Studio,以便在需要時支援您要執行的工作。Use workloads to modify Visual Studio so that it supports the work you want to do, when you want to do it.

Important

若要安裝、更新或修改 Visual Studio,您必須以具有系統管理權限的帳戶登入。To install, update, or modify Visual Studio, you must log on with an account that has administrative permissions. 如需詳細資訊,請參閱使用者權限和 Visual StudioFor more information, see User permissions and Visual Studio.

Tip

下列程序假設您已具備網際網路連線。The following procedure assumes that you have an internet connection. 如需如何修改先前所建立的 Visual Studio 離線安裝的詳細資訊,請參閱控制網路型 Visual Studio 部署的更新頁面。For more information about how to modify a previously created offline installation of Visual Studio, see the Control updates to network-based Visual Studio deployments page.

  1. 在電腦上找到 Visual Studio 安裝程式。Find the Visual Studio Installer on your computer.

    例如,在執行 Windows 10,的電腦上,選取 [開始] ,然後捲動到字母 [V] ,它在其中列為 [Visual Studio Installer] 。For example, on a computer running Windows 10, select Start, and then scroll to the letter V, where it's listed as Visual Studio Installer.

    Visual Studio 安裝程式Visual Studio Installer

    Note

    在某些電腦上,Visual Studio 安裝程式可能會列在 "M" 字母下方,成為 [Microsoft Visual Studio 安裝程式] 。On some computers, the Visual Studio Installer might be listed under the letter "M" as the Microsoft Visual Studio Installer.

    您也可以在下列位置找到 Visual Studio 安裝程式:C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exeAlternatively, you can find the Visual Studio Installer in the following location: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe

  2. 按一下或點選以啟動安裝程式,然後選擇 [修改] 。Click or tap to start the installer, and then choose Modify.

    啟動或修改 Visual StudioLaunch or modify Visual Studio

    如果您有擱置的更新,則 [修改] 按鈕會在不同的位置。If you have an update pending, the Modify button is in a different place. 因此,您可以修改而不需要更新 Visual Studio (如果您選擇這麼做)。This way, you can modify Visual Studio without updating it, should you choose to do so. 按一下 [更多] ,然後選擇 [修改] 。Click More, and then choose Modify.

    更新或修改 Visual StudioUpdate or modify Visual Studio

  3. 從 [工作負載] 畫面,選取或取消選取您想要安裝或解除安裝的工作負載。From the Workloads screen, select or deselect the workloads that you want to install or uninstall.

    Visual Studio 2017 安裝程式對話方塊Visual Studio 2017 Setup Dialog

  4. 再次選擇 [修改] 。Choose Modify again.

  5. 新的工作負載和元件安裝之後,請選擇 [啟動] 。After the new workloads and components are installed, choose Launch.

  1. 在電腦上找到 Visual Studio 安裝程式。Find the Visual Studio Installer on your computer.

    例如,在執行 Windows 10,的電腦上,選取 [開始] ,然後捲動到字母 [V] ,它在其中列為 [Visual Studio Installer] 。For example, on a computer running Windows 10, select Start, and then scroll to the letter V, where it's listed as Visual Studio Installer.

    從 Windows 開啟 Visual Studio 安裝程式Open the Visual Studio Installer from Windows

    Note

    您也可以在下列位置找到 Visual Studio 安裝程式:You can also find the Visual Studio Installer in the following location:

    C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe

    您可能需要更新安裝程式才能繼續。You might have to update the installer before continuing. 若是如此,請遵循提示。If so, follow the prompts.

  2. 請在安裝程式中尋找您安裝的 Visual Studio 版本,然後選擇 [修改] 。In the installer, look for the edition of Visual Studio that you installed, and then choose Modify.

    更新或修改 Visual StudioUpdate or modify Visual Studio

  3. 在 [工作負載] 索引標籤中,選取或取消選取您想要安裝或解除安裝的工作負載。In the Workloads tab, select or deselect the workloads that you want to install or uninstall.

    Visual Studio 2019 安裝程式對話方塊Visual Studio 2019 setup dialog

  4. 選擇接受預設的 [在下載時安裝] 選項還是 [全部下載後安裝] 選項。Choose whether you want to accept the default Install while downloading option or the Download all, then install option.

    Visual Studio 2019 安裝選項Visual Studio 2019 setup options

    如果您想要下載後再安裝,則 [全部下載後安裝] 選項會很方便。The "Download all, then install" option is handy if you want to download first and then install later.

  5. 選擇 [修改] 。Choose Modify.

  6. 安裝新的工作負載和元件後,請選擇 Visual Studio 安裝程式的 [啟動] 。After the new workloads and components are installed, choose Launch from the Visual Studio Installer.

修改個別元件Modify individual components

如果您不想要安裝工作負載來自訂 Visual Studio 安裝,請選擇 Visual Studio 安裝程式的 [個別元件] 索引標籤,選取您想要的並遵循提示作業。If you don't want to install workloads to customize your Visual Studio installation, choose the Individual Components tab from the Visual Studio Installer, select what you want, and then follow the prompts.

取得支援Get support

有時可能會發生一些問題。Sometimes, things can go wrong. 若 Visual Studio 安裝失敗,請參閱針對 Visual Studio 安裝和升級問題進行疑難排解,以取得逐步指導方針。If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.

我們也提供即時聊天 (僅限英文) 支援選項,可回答有關安裝的相關問題。We also offer a live chat (English only) support option for installation-related issues.

以下是一些支援選項:Here are a few more support options:

另請參閱See also