Sharing Your Source Code and Assets

Presents information about sharing your game's source code and assets with other XNA Game Studio Express users.

Quick Information

Platform Source Code Visible Format Windows User Requirements Xbox 360 User Requirements
Windows and Xbox 360 Yes .zip or other compressed format
  • Must have XNA Game Studio Express installed.
  • Must have XNA Game Studio Express installed.
  • Must have an active membership in the XNA Creators Club.

Sharing your entire project, including source code and content, is useful when you want other users to review your code or content, or make modifications. However, in some cases you may not want others to see your source code or assets. If you want feedback on gameplay or existing game art, and don't explicitly need your code to be reviewed, consider the method described in Sharing Your Game Package.

Sharing to Another User

To share your project, including source code, with an XNA Game Studio Express user

  1. In XNA Game Studio Express, open the project you want to share.

  2. On the Build menu, click Clean Solution. This removes any built and intermediate files, leaving only the source code and assets.

    If you do not have this menu item, see "Cleaning the Solution Before You Build" in Deploying an Xbox 360 Game.

  3. Open Windows Explorer, and browse to the folder that contains the project you want to share.

  4. Right-click on the project folder in Windows Explorer, click Send To, and then click Compressed (zipped) Folder.

The compressed file is ready to share.

Sharing from Another User

To open a project with source code as an XNA Game Studio Express user

  1. Upon receiving a compressed file with source code and assets, extract the contents into a folder.

    Tip

    If it is a .zip file, you can right-click the file in Windows Explorer, click Open With, and then click Compressed (zipped) Folders to begin the extraction process.

  2. After the files are extracted, start XNA Game Studio Express.

  3. In XNA Game Studio Express, click the File menu, and then click Open Project.

  4. Use the dialog box to browse to the project folder you specified in Step 1, and select the .csproj file.

  5. Click Open.

The project is loaded into XNA Game Studio Express and ready for viewing or modification.

See Also

Sharing Your Game Package
Distributing Your Finished Game