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

> MicrosoftGame.config Element - NoCodePCRoot

# MicrosoftGame.config Element - NoCodePCRoot

Specifies the local folder where Save Games are stored when using the
[Porting previous titles to PC Game Saves with no-code cloud saves](/build/core-features/common/game-save/game-saves-walkthroughs-and-samples#porting-previous-titles-to-pc-game-saves-with-no-code-cloud-saves)

## Parent

The parent element is the `SaveGameStorage` element.

## Requirement

This element is optional.

## Platform

This element only pertains to PC devices.

## Behavior

* Attribute of `RelativeTo`.
* Attribute values for `RelativeTo` are `AppData`, `Public`, `LocalAppData`, `LocalAppDataLow`, `ProgramData`, `SavedGames`, or `UserProfile`.
* Allowed value is a relative file path.

## Remarks

* To use this element, specify a valid `TitleId` and `MSAAppId` element in your
  `MicrosoftGame.config` file.
* Use `SavedGames` as the `RelativeTo` value. The Saved Games folder (`%USERPROFILE%\Saved Games`) corresponds to `FOLDERID_SavedGames`. OneDrive doesn't sync this folder by default. This behavior helps avoid conflicts with cloud save synchronization. OneDrive automatic syncing can affect other locations such as AppData.

<Info>`NoCodePCRoot` redirection works only when you launch the title as a packaged build by using `wdapp install`. Launching the .exe directly bypasses the redirection and reads and writes to the physical `NoCodePCRoot` path without cloud synchronization. Alternating between packaged and direct .exe launches can cause save data to appear missing. For more information, see [Porting previous titles to PC Game Saves with no-code cloud saves](/build/core-features/common/game-save/game-saves-walkthroughs-and-samples#porting-previous-titles-to-pc-game-saves-with-no-code-cloud-saves).</Info>

## See Also

[MicrosoftGame.config Reference - Table of Contents](/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)

[Porting previous titles to PC Game Saves with no-code cloud saves](/build/core-features/common/game-save/game-saves-walkthroughs-and-samples#porting-previous-titles-to-pc-game-saves-with-no-code-cloud-saves)


## Related topics

- [MicrosoftGame.config Element - SaveGameStorage](/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-savegamestorage.md)
- [MicrosoftGame.config Element - TitleId](/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-titleid.md)
- [MicrosoftGame.config Element - MSAAppId](/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-msaappid.md)
- [MicrosoftGame.config Element - Folder](/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-folder.md)
- [MicrosoftGame.config Element - EnableWritesToPackageRoot (DEPRECATED)](/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-enablewritestopackageroot.md)
