MicrosoftGame.config Editor
MicrosoftGame.config Editor is a UI tool that allows for creating and editing your MicrosoftGame.config file. The editor is provided both as a standalone tools, and as an component integrated into the Visual Studio IDE.
The editor has the following features currently.
- Platform Tabs: Outside of the General tab, there are platform-specific tabs which allow for editing features unique to that platform. All features that are shared across all platforms live in the General tab.
- Executable: This section allows for specification of the executable associated with your title.
- Target Device Family (Platform): This section allows for specification of the target device your title is intended to run on.
- Store Information: This section allows for associating your local MicrosoftGame.config with existing Store data in your Partner Center instance.
- Tile Image: This section allows for providing a source input tile image of your product which will then be generated into all other required images at their proper resolutions automatically.
Launching the standalone version of the MicrosoftGame.config Editor
To launch the standalone MicrosoftGame.config Editor, you can do the following:
- Navigate to the GDK bin folder (i.e. C:\Program Files (x86)\Microsoft GDK\bin) and double click the GameConfigEditor.exe.
- In the Microsoft GDK folder in the Start Menu, select the MicrosoftGame.config Editor icon.
- In the Microsoft GDK folder in the Start Menu, open any Gaming Command Prompt and enter GameConfigEditor.exe.
- In any GDK UX tool, expand the Tools dropdown and select MicrosoftGame.config Editor. The MicrosoftGame.config Editor also has the Tools dropdown integrated in it for quick navigation to other tools.
- In the Microsoft GDK folder in the Start Menu, open any Gaming Command Prompt and enter GameConfigEditor.exe with the path to an existing MicrosoftGame.config or intended folder to generate one as a parameter.
The Create or Edit MicrosoftGame.config window that appears upon launching the editor will prompt for an existing MicrosoftGame.config file or creating a new MicrosoftGame.config file that will then be opened in the editor.
Launching the MicrosoftGame.config Editor from with Visual Studio
The MicrosoftGame.config editor is registered as an optional editor for .mgc files in Visual Studio. To launch the MicrosoftGame.config Editor from within Visual Studio, right click on a game config file in the Solution Explorer and choose Open with.... Select Microsoft Game Config Editor from the dialog.
Note
If your configuration file has an extension other than .mgc, such as .config, it must be renamed before it can be opened with the MicrosoftGame.config editor.
Note
The integration of the MicrosoftGame.config editor into Visual Studio is available as a Preview in the March 2023 release of the Microsoft Game Development Kit (GDK). In a future release of the Microsoft Game Development Kit (GDK), support for the MicrosoftGame.config editor in Visual Studio will exit the Preview phase, at which point it will become the default editor for .mgc files in Visual Studio.
Creating a new MicrosoftGame.config file
To create a new MicrosoftGame.config file, browse to the root folder of your title in the initial window and then select Create to generate the new file in that folder and open it in the editor.
Editing an existing MicrosoftGame.config file
If a MicrosoftGame.config file already exists, browse to the file in the initial window and then select Edit to open the existing file in the editor.
Specifying your title executable and Target Device Family in the MicrosoftGame.config file
In the MicrosoftGame.config Editor window, the first input that is necessary is specifying where your title executable lives. This can be set by browsing to and selecting your title executable in the Executable section of the editor. In addition to specifying the title executable, it is important to specify which platform the executable is intended to run on. For more information on Target Device Family specifications, please refer to the MicrosoftGame.config overview section.
Without an executable being specified, the MicrosoftGame.config file can still be generated and edited but the editor will warn that the title can not be deployed or launched until the executable is set.
Associating with the Microsoft Store
Note
Your title must be configured with Xbox services enabled in Partner Center to utilize the Store Association Wizard.
Select the Associate with the Microsoft Store button to walk through the Store Association Wizard and pull down associated title information and save it to your local MicrosoftGame.config file.
Note
After completing the Store Association Wizard, select Save in the MicrosoftGame.config Editor to write the changes to your MicrosoftGame.config for your project.
Generating Tile Images
To generate your titles images to be used by the Microsoft Store, select the Tile image and then browse to and provide a 480x480 .PNG file to be used as the input. Upon selecting the file, all other images will be updated automatically with it as the source input and properly resized to match their required resolutions.
Adding Platform-specific features
With the April 2021 GDK, the capability to add and remove platform-specific features is now present in the MicrosoftGame.config Editor, within the Xbox and PC tabs.
The Features menu allows for adding new features, removing existing features and selecting and configuring existing feature values.
To add a feature, select the Add new button. A list of available features for that platform will be presented. Selecting the checkbox and selecting Add will add the feature(s) entry to the feature list for further property configuration.
Features that have already been added will be displayed at the bottom of the Add new list with yellow text indicating that the feature is already present and can only be specified once. For features that can be added multiple times, selecting the feature again from the Add new menu and selecting Add will add an additional feature entry of that type to the feature list.
To remove a feature, navigate to the Remove button in the feature list and, when prompted, select Yes to confirm you intend to remove the feature from the feature list.
Most features need to have their properties configured ahead of saving them to the MicrosoftGame.config file. In some cases, a feature may be considered invalid due to missing information and will be removed upon save with details indicating what missing value caused the removal. Please re-add and reconfigure the feature properties appropriately to ensure it can be retained when saved in the MicrosoftGame.config Editor.
Providing feedback
The MicrosoftGame.config Editor is available for use as of the February 2021 GDK. Please use the suggestion menu item to provide feedback on the existing features or request additional functionality.
Documentation Link
For more information on the MicrosoftGame.config Editor and associated elements, click on the Documentation link in the MicrosoftGame.config Editor.
See also
MicrosoftGame.config
MicrosoftGame.config overview
MicrosoftGame.config Reference (sample MicrosoftGame.config and schema)
Overview of packaging