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

# 在開發電腦上測試套件

> 在開發電腦上測試套件

本節將說明如何在 PC Microsoft Game Development Kit (GDK) 遊戲成功封裝成 MSIXVC 組建檔案之後進行測試，並提供成功執行已安裝套件所需之 GamingServices 相依性的診斷步驟。

<Tip>您可以使用本文所述的 `wdapp install` 命令來側載和測試 **MSIXVC2 套件**。您也可以將在本機測試的 MSIXVC2 套件直接上傳至 Partner Center。如需詳細資訊，請參閱[開始使用適用於 PC 的 MSIXVC2](/zh-TW/build/core-features/common/packaging/overviews/packaging-getting-started-for-PC-msixvc2)。</Tip>

若要安裝下列元件，以及使用此 GDK 測試已封裝的遊戲，目標開發電腦上需要 Windows 19H1 組建。

## 測試應用程式

當您有要在開發電腦上測試的 MSIXVC 組建檔案時，請使用 `wdapp.exe install <MSIXVC>` 命令進行安裝。如需安裝和管理 PC GDK 遊戲的詳細資訊，請參閱[使用 Microsoft Game Development Kit 工具安裝及啟動您的 PC 遊戲](/zh-TW/tools/tools-pc/launching-on-pc)。

## 診斷和疑難排解 Gaming Services 相依性

開發電腦的 MSIXVC 封裝和部署步驟依賴於已安裝的 Gaming Services 套件。GamingServices 套件會隨 GDK 一起安裝，應該不需要任何手動步驟即可設定。

如果您遇到表示缺少 Gaming Services 套件的問題，請執行下列 Windows PowerShell 命令，確認此套件已安裝：

`Get-AppxPackage Microsoft.GamingServices`

如果您發現套件不存在，請先嘗試修復您的 GDK 安裝。如果仍無法解決，請在 GDK 安裝目錄中找到 *GamingServices.msixbundle* 套件，並執行下列命令進行安裝：

`Add-AppxPackage <PathToGamingServices.msixbundle>`

如果您懷疑 Gaming Services 套件有問題，可以從系統管理員命令提示字元執行下列命令，手動移除該套件：

`Get-AppxPackage *Microsoft.GamingServices* | Remove-AppxPackage -allusers`

最後，若要手動取得或更新 Gaming Services，請使用下列連結從 Microsoft Store 下載。

[Microsoft Store 中的 Gaming Services](ms-windows-store://pdp/?productid=9MWPM2CQNLHN)

從 `Get-AppxPackage` 命令中找出版本字串，並在此命令中準確輸入。


## Related topics

- [XBOX 遊戲開發文件](/zh-TW/index.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [認證 PC BVT 指南](/zh-TW/publishing/game-publishing/concepts/certification/certification-pc-bvt-guide.md)
- [最常失敗的測試案例](/zh-TW/publishing/certification/xr-top-failing.md)
- [使用 GDKX 建置並執行你的第一個主機遊戲](/zh-TW/home/build-first-title/first-console-title-walkthrough.md)
