> ## 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.

# 命令提示字元

> 命令提示字元

Microsoft Game Development Kit (GDK) 提供數個命令提示字元。它們用於為每個支援的平台 (XBOX One、XBOX Scarlett 或 Desktop) 與 Visual Studio 設定 (Visual Studio 2019 或 Visual Studio 2022) 正確設定開發人員環境變數。命令提示字元捷徑位於 \[開始] 功能表的 *Microsoft GDK* 資料夾中，或位於 GDK 安裝位置的 *Command Prompts* 資料夾下 (也就是 *C:\Program Files (x86)\Microsoft GDK\Command Prompts*)。命令提示字元如下。

* \*\*(*Month Year*) Desktop VS 2019 Gaming Command Prompt：\*\*以指定的 `GamingDesktopVS2019` 參數呼叫 *GamingDesktopVars.cmd* 檔案
* \*\*(*Month Year*) Desktop VS 2022 Gaming Command Prompt：\*\*以指定的 `GamingDesktopVS2022` 參數呼叫 *GamingDesktopVars.cmd* 檔案
* \*\*(*Month Year*) XBOX One VS 2019 Gaming Command Prompt：\*\*以指定的 `GamingXboxVS2019 and` *(GXDKEDITION)* 參數呼叫 *GamingXboxVars.cmd* 檔案
* \*\*(*Month Year*) XBOX One VS 2022 Gaming Command Prompt：\*\*以指定的 `GamingXboxVS2022 and` *(GXDKEDITION)* 參數呼叫 *GamingXboxVars.cmd* 檔案
* \*\*(*Month Year*) XBOX Scarlett VS 2019 Gaming Command Prompt：\*\*以指定的 `GamingXboxScarlettVS2019` 與 *(GXDKEDITION)* 參數呼叫 *GamingXboxVars.cmd* 檔案
* \*\*(*Month Year*) XBOX Scarlett VS 2012 Gaming Command Prompt：\*\*以指定的 `GamingXboxScarlettVS2022` 與 *(GXDKEDITION)* 參數呼叫 *GamingXboxVars.cmd* 檔案

*GamingDesktopVars.cmd* 與 *GamingXboxVars.cmd* 也位於 *Command Prompts* 資料夾中。在開發期間，請確保使用對應遊戲所支援平台與 Visual Studio 設定的命令提示字元捷徑，以設定正確的開發人員環境。

如需從 GDK 擷取的平面部署設定 GDK 命令提示字元與開發環境的詳細資訊，請參閱[在不安裝 Microsoft Game Development Kit 的情況下設定組建環境](/zh-TW/build/console-features/build-without-install/build-environment-withoutinstall)。


## Related topics

- [設定沙箱](/zh-TW/services/xbox-services/fundamentals/sandboxes/live-setting-up-sandboxes.md)
- [使用 GDKX 建置並執行你的第一個主機遊戲](/zh-TW/home/build-first-title/first-console-title-walkthrough.md)
- [使用 Microsoft Game Development Kit (GDK) 工具安裝與啟動 PC 遊戲](/zh-TW/tools/tools-pc/launching-on-pc.md)
- [PC 自訂引擎整合：開始使用 (C/C++)](/zh-TW/build/gdk-and-engines/custom-engine.md)
- [開始封裝 PC 遊戲](/zh-TW/build/core-features/common/packaging/overviews/packaging-getting-started-for-PC.md)
