Sharing Your Source Code and Assets
|Platform||Source Code Visible||Format||Windows User Requirements||Xbox 360 User Requirements||Zune User Requirements|
|Windows, Xbox 360 and Zune||Yes||.zip or other compressed format||
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 user
In XNA Game Studio, open the project you want to share.
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.
Open Windows Explorer, and browse to the folder that contains the project you want to share.
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 user
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.
- After the files are extracted, start XNA Game Studio.
- In XNA Game Studio, click the File menu, and then click Open Project.
- Use the dialog box to browse to the project folder you specified in Step 1, and select the .csproj file.
- Click Open.
The project is loaded into XNA Game Studio and ready for viewing or modification.