> ## 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 上测试包

> 在开发 PC 上测试包

本节将介绍在成功将 PC Microsoft 游戏开发工具包(GDK)游戏打包为 MSIXVC 构建文件之后如何测试它,并提供关于运行已安装包所需的 GamingServices 依赖项的诊断步骤。

<Tip>你可以使用本文中介绍的 `wdapp install` 命令侧载并测试 **MSIXVC2 包**。你也可以将在本地测试的 MSIXVC2 包直接上传到 Partner Center。有关详细信息,请参见 [MSIXVC2 for PC 入门](/build/core-features/common/packaging/overviews/packaging-getting-started-for-PC-msixvc2)。</Tip>

要安装以下组件并使用此 GDK 测试打包的游戏,目标开发 PC 需要安装 19H1 版本的 Windows。

## 测试应用

当你在开发 PC 上有一个用于测试的 MSIXVC 构建文件时,使用 `wdapp.exe install <MSIXVC>` 命令进行安装。有关安装和管理 PC GDK 游戏的更多信息,请参见 [使用 Microsoft 游戏开发工具包工具安装和启动你的 PC 游戏](/tools/tools-pc/launching-on-pc)。

## 诊断和排查 Gaming Services 依赖项

开发 PC 上的 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

- [流式安装与智能交付概述](/zh-CN/build/core-features/common/packaging/overviews/streaming_install-intelligent_delivery.md)
- [XBOX GDK 游戏的打包与部署](/zh-CN/build/core-features/common/packaging/index.md)
- [认证 PC BVT 指南](/zh-CN/publishing/game-publishing/concepts/certification/certification-pc-bvt-guide.md)
- [在 Unity 中使用 GDK](/zh-CN/build/gdk-and-engines/unity/unity.md)
- [XBOX 游戏开发文档](/zh-CN/index.md)
