> ## 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 元素 - GameOsVersion

> MicrosoftGame.config 元素 - GameOsVersion

# MicrosoftGame.config 元素 - GameOsVersion

指定此遊戲執行所需的 GameOS 版本。若未指定，將使用目前執行中或預設的 GameOS。

## 父系

此元素的父系是 Game 元素。

## 需求

此元素為選用，不需要設定。

## 平台

此元素僅適用於主機裝置。

## 行為

* 沒有屬性。
* 預設值為與遊戲並存 (若為鬆散檔案組建) 或內嵌於 .xvc 中 (若已封裝) 的 GameOs.xvd 版本。
* 允許的值為四部分的版本號碼 (例如 10.0.18362.0)。

## 備註

* 若您遇到指出「遊戲主機無法啟動」的啟動錯誤，建議您檢查 MicrosoftGame.config 中定義的 GameOsVersion 是否與您用來建置遊戲的 GameOsVersion 相符。

## 另請參閱

[MicrosoftGame.config 參考 - 目錄](/zh-TW/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)


## Related topics

- [MicrosoftGame.config Element - GameOsVersion](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-gameosversion.md)
- [MicrosoftGame.config 要素 - GameOsVersion](/ja-jp/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-gameosversion.md)
- [MicrosoftGame.config 요소 - GameOsVersion](/ko/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-gameosversion.md)
- [Elemento de MicrosoftGame.config - GameOsVersion](/es/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-gameosversion.md)
- [MicrosoftGame.config 参考](/zh-CN/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)
