> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GameOsVersion 元素 (MicrosoftGame.config)

> MicrosoftGame.config 元素 - GameOsVersion

# MicrosoftGame.config 元素 - GameOsVersion

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

## 父系

此元素的父系是 Game 元素。

## 需求

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

## 平台

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

## 行為

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

## 備註

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

## 另請參閱

[MicrosoftGame.config 參考 - 目錄](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)


## Related topics

- [MicrosoftGame.config 元素參考 (內容)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)
- [WindowsOsVersion 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-windowsosversion.md)
- [Game 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-game.md)
- [Identity 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-identity.md)
- [Dependency 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-dependency.md)
