Any language you like (as long as it's at build time)

Originally posted to Shawn Hargreaves Blog on MSDN, Monday, April 2, 2007

The XNA Framework only supports C#, at least if you want to run on Xbox or use the content pipeline.

Or does it?

It is true that our GSE IDE is only for C#. But content pipeline importers and processors are just regular managed assemblies, so you can build them using any .NET tool you like.

Probably the most interesting option here is C++/CLI. Through various forms of compiler and runtime magic, C++/CLI makes it trivially easy for managed code to call into native libraries and manipulate native objects. Comes in handy if you want to use existing native functionality to process your game content.

In fact, we took advantage of this ourselves. Our .X and .FBX importers are written with C++/CLI, so they can easily make use of the native D3DX library and FBX SDK.

Blog index   -   Back to my homepage