tags:

views:

39

answers:

2

I'm looking for a project generator which can build project files for various IDEs like Visual Studio, XCode, SharpDevelop, CodeBlocks, etc and which supports both C/C++ and C# projects.

I've looked at CMake, but it seems like it lacks C# support.

Anyone have any suggestions?

A: 

You could use a template based code generation tools, eg CodeSmith, to generate files, but you would have to create the project templates yourself.

Mark Redman
Some background info... we currently have a system developed in PHP using Smarty. CodeSmith seems like Smarty with an IDE... which is nice, but i was hoping to find a solution that didn't involve us creating templates and managing their execution.
Tom Spilman
+1  A: 

Premake can generate project files for Visual Studio, MonoDevelop, SharpDevelop, XCode, Code::Blocks, CodeLite and plain GNU Make, and it supports building C#, C++ and C projects for tons of platforms from Unix, Linux, OSX, Windows to crosscompiling for PlayStation 3 and XBox 360.

Jörg W Mittag
This looks like a really good solution at first glance. Thanks!
Tom Spilman
So looked closer at Premake. While its a step in the right direction it has a few thing that make it not ideal for us:1. Its Lua based.... yet another language that is difficult to use because of lack of good debugging tools. While i like Lua and have used it before and know there is a 3rdparty "ide" for it... i'd prefer to stick to C#.2. Premake doesn't yet support VS2010 or XNA C# projects. While we could extend it to support these we're getting into more development work which we wanted to avoid.3. Premake's C# support is very simple and lacks project configuration settings.
Tom Spilman