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

# NoCodePCRoot Element (MicrosoftGame.config)

> 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](https://docs.xbox.com/build/core-features/common/game-save/game-saves-walkthroughs-and-samples.md#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.

> [!NOTE]
>
> `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](https://docs.xbox.com/build/core-features/common/game-save/game-saves-walkthroughs-and-samples.md#porting-previous-titles-to-pc-game-saves-with-no-code-cloud-saves).

## See Also

[MicrosoftGame.config Reference - Table of Contents](https://docs.xbox.com/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)

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


## Related topics

- [MicrosoftGame.config element reference (contents)](https://docs.xbox.com/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)
- [SaveGameStorage Element (MicrosoftGame.config)](https://docs.xbox.com/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-savegamestorage.md)
- [TitleId Element (MicrosoftGame.config)](https://docs.xbox.com/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-titleid.md)
- [MSAAppId Element (MicrosoftGame.config)](https://docs.xbox.com/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-msaappid.md)
- [Folder Element (MicrosoftGame.config)](https://docs.xbox.com/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-folder.md)
