> ## 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 要素 - ModFolder (非推奨)

> MicrosoftGame.config 要素 - ModFolder (非推奨)

# MicrosoftGame.config 要素 - ModFolder (非推奨)

ゲーム ファイルのエンド ユーザー MOD の場所を定義します。

## 親要素

この要素の親は DesktopRegistration 要素です。

## 要件

この要素は省略可能で、設定は必須ではありません。

## プラットフォーム

この要素は PC デバイスのみに関係します。

## 動作

* 属性は Name です。
* Name 属性の既定値は `<PackageName>_Mods` です。
* Name 属性で使用できる値は、パッケージのルートにある任意の有効なフォルダー名です。

## 解説

* 2022 年 3 月の GDK 以降、パッケージのインストール方法の変更により、この要素は非推奨となりました。詳細については、「[フラット ファイル インストールの概要](/build/core-features/common/packaging/packaging-flatfileinstall)」を参照してください。
* この要素が MicrosoftGame.config で設定されていても、2022 年 3 月の Microsoft Game Development Kit (GDK) 以降のリリースでは無視されます。
* これらの要素が `Game configVersion="1"` に更新された MicrosoftGame.config に含まれている場合、タイトルをパッケージ化しようとするとエラーが表示されます。エラー メッセージは "The DesktopRegistration entries "modFolder", "enableWritesToPackageRoot", "disableRegistryWriteVirtualization" and "disableFilesystemWriteVirtualization" are deprecated in configVersion >= 1" と出力されます。MicrosoftGame.config からこれらの要素を削除することで、この問題は解決します。`Game configVersion="1"` の詳細と、それがタイトルに影響するかどうかについては、「[MicrosoftGame.config バージョンの詳細](/reference/system/microsoftgameconfig/microsoftgameconfig-schema#MicrosoftGameConfig-VersionDetails)」を参照してください。

## 関連項目

[MicrosoftGame.config リファレンス - 目次](/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)


## Related topics

- [MicrosoftGame.config 要素 - EnableWritesToPackageRoot (非推奨)](/ja-jp/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-enablewritestopackageroot.md)
- [MicrosoftGame.config 要素 - DisableFilesystemWriteVirtualization (非推奨)](/ja-jp/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-disablefilesystemwritevirtualization.md)
- [MicrosoftGame.config 要素 - DisableRegistryWriteVirtualization (非推奨)](/ja-jp/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-disableregistrywritevirtualization.md)
- [MicrosoftGame.config 要素 - Folder](/ja-jp/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-folder.md)
- [MicrosoftGame.config 要素 - DesktopRegistration](/ja-jp/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-desktopregistration.md)
