Sting203

I was wondering if there is a easy way to recompile an Xbox 360 project to a Windows project, because I can't always be connected to my xbox to test out what i'm working on since the xbox is shared by the family. So can I make a change to my program an recompile it for windows so I can see if my change worked and once i'm done making changes to the program I can then build it for the xbox and try it out.

Thanks


Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Jim Perry

You can start a new Windows Game and link all the files from the 360 project. It would probably take about 30 seconds to set up.

After you create the Windows Game project, right click on the project in the Solution Explorer, select Add | Existing Item, select all the files in the dialog, click the arrow on the Add button and select Add As Link. Any changes made in either project will be reflected in the other.






Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Japu

How many probability has of which this method changes in the future





Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Amy R Hagstrom - MSFT

No promises, but the XNA team is looking into ways to possibly make this easier in the future.

Amy





Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Shawn Hargreaves - MSFT

Japu wrote:
How many probability has of which this method changes in the future


Joe wrote about this over on http://blogs.msdn.com/joen/archive/2006/11/29/stay-on-target-stay-on-target.aspx






Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Sting203

I created a windows project and linked the files like Jim said and that worked once I added my images and audio from the xbox project to the windows project. Its not the ideal solution but it works for the time being.

Thanks.




Re: XNA Game Studio Express Xbox 360 Project to Windows Project

EmoSaru

FYI, you CAN create a csproj file which will load in GSE that can build to both platforms. The GUI won't let you, but you can modify the csproj file it produces. I successfully did this last night, and now have a single solution/project that can be switched from platform to platform in the GUI.

I can try to post an example of this (for libraries and for apps) later, but a good place to start is creating a new app project for each platform, and diff'ing the csproj files. You'll need to create some new property blocks, move some things into them, and set some conditions properly. Additionally, you'll need to remove the additional information (platform, keys, etc.) from the references to the XNA dlls. This will force GSE to resolve them intelligently across platform switches, as opposed to giving you nasty errors.

Brian





Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Shawn Hargreaves - MSFT

That approach kind of works, but there are some gotchas that might trip you up (which is why we didn't do this by default).

Stephen wrote a post explaining the issues that can come up with this.





Re: XNA Game Studio Express Xbox 360 Project to Windows Project

EmoSaru

Yeah, the assembly reference issues are the trickiest/nastiest, but this definitely works (at least at build/deploy time). My little group of developers tends to work based on documentation anyway; intellisense is just a bonus.

For a project with minimal reliance on external assemblies though, this can certainly be a boon to productivity. I (along with many others, it seems) look forward to any solid improvements in this area from the XNA team. Overall the experience is so nice that I'm willing to lose some intellisense stability and "safety" when adding references in exchange for a more effective working style.




Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Shawn Hargreaves - MSFT

The way I've been doing this is to put my Windows and Xbox versions of each project in the same directory, and using the same assembly name, just with different filenames for the csproj file. Then I add everything to a single solution file, and use the target platform toolbar combo to select which platform I'm building for. VS will skip building projects that don't have configurations for the current platform, so I can have all my code there in a single solution and quickly toggle back and forth between platforms.

The only pain is that each time I add a new source file, I have to remember to add it twice, to both platform versions of the project. Having both project files in the same directory makes this nice and easy, though, as I can just drag the file from an Explorer window into my project, no need to worry about setting it up as a link or anything.





Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Japu

I try first this "solution", put win32 and xbox project in the same directory, but the diretory properties collide, can i avoid this My idea as been create directory each platform with the same name....

GameDir

[my files]

x360

project....

win32

project....






Re: XNA Game Studio Express Xbox 360 Project to Windows Project

Jim Perry

Move the 360 and Win32 folders out of the GameDir folder and put them at the same level as GameDir. Create a Files folder under GameDir and move the common files for the 2 projects into that.