Efficient way of compiling content?

Topics: General, Windows Metro
Nov 19, 2012 at 4:50 PM

I managed to get my sounds woriking with using XNA Game Studio and Visual 2010. Updating a project in VS2010 then finding a right folder then copying it to my VS2012 is a lot of hustle. Do you have any simple tricks to make it easier?

Like automaticly firing a file-copying script after the compilation is complete? How do you set it up in VS2012?

Developer
Nov 19, 2012 at 5:09 PM

Hi Pioiwan,

  You really should be using links to both source files and assets. This negates the whole copying that you are doing. Build in VS20120, then just Rebuid in VS2012 and it should just work.

 

I hope this helps.

 

 

Dominique.

Nov 19, 2012 at 5:29 PM

What do you mean by links and how to set it up? I imagine that my VS2012 project would use some outside directory as a source of the content and that directory would be in the VS2010 solution - that would be cool.

Developer
Nov 19, 2012 at 5:40 PM

When you add code or assets to your VS2012 project, in the dialog where you select the file, instead of clicking the Add button, use the drop down and select "Add as Link". That means you are only ever referencing 1 set of files. If you make a change in your VS2012 project, then next time you rebuild in VS2012, it will just automatically pick that up.

 

D.

Nov 19, 2012 at 5:52 PM

Thanks, it works great!