Adding Game Data Files to Title Storage
This topic describes how to add files to title storage that the game will access through stream I/O. This is the exceptional case, and is not recommended for most XNA Game Studio games. Instead, consider using the Content Pipeline to manage your game data most efficiently.
Adding files to Title Storage
Any file that your game needs at runtime can be added to the title storage location simply by adding the file to the root-level of your project in Visual Studio.
To add a data file to title storage
Copy the file to your project directory.
In Solution Explorer, right-click the project name, select Add, and then click Existing Item.
The Add Existing Item dialog box appears.
In the file types drop-down list, ensure the default setting of All Files (*.*) is selected.
Select the name of the file you want to add to the project from the list, and then click Add.
An entry for the file appears in your project in Solution Explorer.
- In Solution Explorer, click the file just added to view its properties. If the Properties window is not open, right-click the file name, and then click Properties.
In the Properties window, change Build Action to None, and change Copy to Output Directory to Copy if newer.