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

# Visual Studio 2026 GDK 支援注意事項

> Visual Studio 2026 Microsoft Game Development Kit (GDK) 支援注意事項

本文說明 GDK 對 Visual Studio 2026 的支援。[Visual Studio 2026](https://visualstudio.microsoft.com/) 支援 Microsoft Game Development Kit (GDK) 開發。

## 安裝 Visual Studio 2026

GDK 支援使用 Visual Studio 2026 的 **Professional** 版或 **Enterprise** 版進行開發。不支援 Community 版。

<Info>ARM 型裝置不支援 GDK Visual Studio 延伸模組 (VSIX) 元件。若要使用 GDK Visual Studio 專案範本、屬性頁與偵錯延伸模組，請在 x64 型開發電腦上安裝 GDK。</Info>

安裝 Visual Studio 2026 時，請在安裝期間選取 **使用 C++ 的遊戲開發** 工作負載，如下列螢幕擷取畫面所示。

<img src="https://mintcdn.com/microsoft-4404708b/6TXzXmujKayly5Sf/images/gdk/tools/vs2026_workloads_game_development.png?fit=max&auto=format&n=6TXzXmujKayly5Sf&q=85&s=490c6dc55a6864b274ec5d2ae2dd61c1" alt="使用 Visual Studio 2026 安裝使用 C++ 的遊戲開發工作負載" width="1920" height="1080" data-path="images/gdk/tools/vs2026_workloads_game_development.png" />

除了遊戲開發所需的核心 C++ 工具之外，請確定已安裝 **Windows 10 SDK (22000)** 元件，以提供使用 GDK 建置遊戲所需的 Windows SDK。您也可以使用 \*Windows SDK for Windows 11, Version 22H2 (10.0.22621) 或 *Windows SDK for Windows 11, Version 24H2 (10.0.26100)*，但並非必要。

雖然並非必要，但安裝 **使用 C++ 的桌面開發** 工作負載可提供更多您可能覺得有用的工具與範例。例如，如果您使用 Clang/LLVM 工具組進行建置，則需要 **使用 C++ 的桌面開發**。

## 安裝選用工具組

**使用 C++ 的遊戲開發** 工作負載會安裝 Visual Studio 2026 版本的 MSVC 建置工具 (版本 **v145**)。除了 **v145** 工具組之外，GDK 也支援使用下列工具組進行建置：

* v143 (Visual Studio 2019 工具組)
* v142 (Visual Studio 2019 工具組)
* 適用於 Windows 的 C++ Clang 工具

這種彈性可讓您升級至 Visual Studio 2026 IDE，而不需要更新工具組。

您可以在 **使用 C++ 的桌面開發** 工作負載底下找到選用工具組，或在 Visual Studio 安裝對話方塊中搜尋 **個別元件**。

<img src="https://mintcdn.com/microsoft-4404708b/6TXzXmujKayly5Sf/images/gdk/tools/vs2026_optional_toolsets.png?fit=max&auto=format&n=6TXzXmujKayly5Sf&q=85&s=8b3b23925fc790c34859f7f31f5646c0" alt="安裝 Visual Studio 2026 時選取選用工具組" width="1920" height="1080" data-path="images/gdk/tools/vs2026_optional_toolsets.png" />

## 為專案選取工具組

使用專案屬性頁中的 **平台工具組** 屬性指定專案要使用的工具組。

<img src="https://mintcdn.com/microsoft-4404708b/6TXzXmujKayly5Sf/images/gdk/tools/vs2026_specify_a_toolset.png?fit=max&auto=format&n=6TXzXmujKayly5Sf&q=85&s=b14e8d129824118c1124bfadbd21eafa" alt="指定建置專案時要使用的工具組" width="1201" height="820" data-path="images/gdk/tools/vs2026_specify_a_toolset.png" />

您也可以在專案檔中手動指定 **PlatformToolset** 屬性，如下列屬性群組所示。

```xml theme={null}
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Gaming.Xbox.Scarlett.x64'" Label="Configuration">
  <ConfigurationType>Application</ConfigurationType>
  <PlatformToolset>v145</PlatformToolset>
  <UseDebugLibraries>true</UseDebugLibraries>
  <CharacterSet>Unicode</CharacterSet>
  <EmbedManifest>false</EmbedManifest>
  <GenerateManifest>false</GenerateManifest>
</PropertyGroup>
```

## Visual Studio 2026 服務模型

Visual Studio 2026 包含新的服務模型，其中同時包含 Insiders 與 Stable 通道。如需詳細資訊，請參閱 [Visual Studio 產品生命週期與服務](https://learn.microsoft.com/visualstudio/productinfo/vs-servicing)。

## 回報錯誤

**Visual C++ 編譯器**的錯誤請 (盡可能) 透過 Visual Studio 的 *回報問題...* 進行回報。請參閱 [Microsoft Docs](https://learn.microsoft.com/visualstudio/ide/how-to-report-a-problem-with-visual-studio) 與[開發人員社群](https://aka.ms/feedback/report?space=62)網站。如需為編譯器建立良好錯誤報告的詳細資訊，請參閱[此頁面](https://aka.ms/compilerbug)。

<Note>如果需要私人資訊才能重現問題，您可以在公開報告問題中新增標示為「僅限 Microsoft」的註解。</Note>

若要回報 **clang/LLVM for Windows 編譯器**的錯誤，請使用 [https://bugs.llvm.org/](https://bugs.llvm.org/)

若要回報 **Microsoft 標準 C++ 程式庫** (又稱 STL) 的錯誤，請使用 [https://github.com/microsoft/STL/issues](https://github.com/microsoft/STL/issues)

一如往常，對於需要提報的重大問題，歡迎與您的 *Microsoft 代表*聯絡。

## 另請參閱

[Visual Studio](/zh-TW/tools/tools-console/visualstudio/visualstudio)

[XBOX 開發的 Visual Studio 專案範本](/zh-TW/tools/tools-console/visualstudio/durango-visual-studio-templates)

[XBOX 開發的 Visual Studio 屬性](/zh-TW/tools/tools-console/visualstudio/durango-property-pages)

[使用 Visual Studio 偵錯 XBOX 專案](/zh-TW/tools/tools-console/visualstudio/debugging-with-visualstudio)


## Related topics

- [Visual Studio 2022 GDK 支援注意事項](/zh-TW/tools/tools-console/visualstudio/vs-2022-support-notes.md)
- [Visual Studio 2019 GDK 支援注意事項](/zh-TW/tools/tools-console/visualstudio/vs-2019-support-notes.md)
- [Visual Studio 2019 支援注意事項](/zh-TW/tools/tools-pc/visualstudio/gr-vs-2019-support-notes.md)
- [Visual Studio 2022 支援注意事項](/zh-TW/tools/tools-pc/visualstudio/gr-vs-2022-support-notes.md)
- [Visual Studio (內容)](/zh-TW/tools/tools-pc/visualstudio/gr-visualstudio-toc.md)
