> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Visual Studio 工具組設定

> 列出在不安裝 Microsoft Game Development Kit 的情況下進行建置所需的 Visual Studio 和 Visual Studio Build Tools 元件。

若要建置 Microsoft GDK 專案，您可以設定 [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/) (可建置 v142、v143 和 Clang 平台工具組 VC++ 專案) 或 [Visual Studio 2019 (16.11)](https://visualstudio.microsoft.com/vs/older-downloads/) (可建置 v142 和 Clang 平台工具組 VC++ 專案)。您也可以使用完整的 Visual Studio 安裝或 Build Tools for Visual Studio。請務必安裝下列元件。

## Visual Studio 2022

### VS 2022 的完整 Visual Studio 安裝

| 工作負載 | 元件識別碼 (用於命令列安裝) |
| - | - |
| 使用 C++ 的遊戲開發 | Microsoft.VisualStudio.Workload.NativeGame |
| 必要元件：Windows 11 SDK (10.0.22000.0) 或更新版本 | Microsoft.VisualStudio.Component.Windows11SDK.22000 |
| 選用元件：MSVC v142 - VS 2019 C++ x64/x86 建置工具 | Microsoft.VisualStudio.ComponentGroup.VC.Tools.142.x86.x64 |
| 選用元件：適用於 Windows 的 C++ Clang 工具 | Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang |
| 選用：使用 C++ 的桌面開發 | Microsoft.VisualStudio.Workload.NativeDesktop |

### VS 2022 的 Build Tools Visual Studio

| 工作負載 | 元件識別碼 (用於命令列安裝) |
| - | - |
| 使用 C++ 的桌面開發 | Microsoft.VisualStudio.Workload.NativeDesktop |
| 必要元件：Windows 11 SDK (10.0.22000.0) 或更新版本 | Microsoft.VisualStudio.Component.Windows11SDK.22000 |
| 必要元件：MSVC v143 - VS 2022 C++ x64/x86 建置工具 | Microsoft.VisualStudio.Component.VC.Tools.x86.x64 |
| 選用元件：MSVC v142 - VS 2019 C++ x64/x86 建置工具 | Microsoft.VisualStudio.ComponentGroup.VC.Tools.142.x86.x64 |
| 選用元件：適用於 Windows 的 C++ Clang 工具 | Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang |

## Visual Studio 2019

### VS 2019 的完整 Visual Studio 安裝

| 工作負載 | 元件識別碼 (用於命令列安裝) |
| - | - |
| 使用 C++ 的遊戲開發 | Microsoft.VisualStudio.Workload.NativeGame |
| 必要元件：Windows 11 SDK (10.0.22000.0) 或更新版本 | Microsoft.VisualStudio.Component.Windows11SDK.22000 |
| 選用元件：適用於 Windows 的 C++ Clang-cl 適用於 v142 建置工具的 C++ Clang-cl (x64/x86) | Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang |
| 選用：使用 C++ 的桌面開發 | Microsoft.VisualStudio.Workload.NativeDesktop |

### VS 2019 的 Build Tools Visual Studio

| 工作負載 | 元件識別碼 (用於命令列安裝) |
| - | - |
| 使用 C++ 的桌面開發 | Microsoft.VisualStudio.Workload.NativeDesktop |
| 必要元件：Windows 11 SDK (10.0.22000.0) 或更新版本 | Microsoft.VisualStudio.Component.Windows11SDK.22000 |
| 必要元件：MSVC v142 - VS 2019 C++ x64/x86 建置工具 (最新) | Microsoft.VisualStudio.Component.VC.Tools.x86.x64 |
| 選用元件：適用於 Windows 的 C++ Clang-cl 適用於 v142 建置工具的 C++ Clang-cl (x64/x86) | Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Llvm.Clang |


## Related topics

- [在不安裝的情況下使用 Microsoft Game Development Kit (目錄)](https://docs.xbox.com/zh-TW/build/console-features/build-without-install/gc-usingwithoutinstall-toc.md)
- [使用 Visual Studio 偵錯 XBOX 專案](https://docs.xbox.com/zh-TW/tools/tools-console/visualstudio/debugging-with-visualstudio.md)
- [Visual Studio](https://docs.xbox.com/zh-TW/tools/tools-pc/visualstudio/index.md)
- [Visual Studio 2022 支援注意事項](https://docs.xbox.com/zh-TW/tools/tools-pc/visualstudio/gr-vs-2022-support-notes.md)
- [Visual Studio 2026 GDK 支援注意事項](https://docs.xbox.com/zh-TW/tools/tools-console/visualstudio/vs-2026-support-notes.md)
