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

# MicrosoftGame.config Element - GameOsVersion

> MicrosoftGame.config Element - GameOsVersion

# MicrosoftGame.config Element - GameOsVersion

指定此标题运行所需的 GameOS 版本。如果未指定，将使用当前运行或默认的 GameOS。

## 父元素

此元素的父元素是 Game 元素。

## 要求

此元素为可选，无需设置。

## 平台

此元素仅适用于主机设备。

## 行为

* 无属性。
* 默认值是与标题并排（如果是松散文件构建）或嵌入 .xvc 中（如果已打包）的 GameOs.xvd 版本。
* 允许值为四部分版本号（例如 10.0.18362.0）。

## 备注

* 如果你遇到启动错误提示 "The game host failed to start"，我们建议你检查 MicrosoftGame.config 中定义的 GameOsVersion 与用于构建标题的 GameOsVersion 是否匹配。

## 另请参阅

[MicrosoftGame.config 参考 - 目录](/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)


## Related topics

- [MicrosoftGame.config Element - Game](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-game.md)
- [MicrosoftGame.config Element - Dependency](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-dependency.md)
- [MicrosoftGame.config Element - Identity](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-identity.md)
- [MicrosoftGame.config Element - MSAAppId](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-msaappid.md)
- [MicrosoftGame.config Element - ModFolder (DEPRECATED)](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-modfolder.md)
