Thanks for the above reply (I know I am very late in thanking you, apologies for that!).
I have a somewhat related question:
I am working on a C++ project where everything is portable across Windows and Linux, and I obviously use Code::Blocks. On Windows I use the VC2010 compiler from C::B, GCC on linux.
The functionality needs to be accessed (on Windows only) from a C# application, and for that I am writing the C++/CLI code (making that layer as thin as possible). This seems to work, although I use Visual C++ 2010 express for the C++/CLI code still.
Recently, I have started testing from C#, and found that I had to install yet another MS IDE to do it: MS Visual C# 2010 Express. Observe that the express versions of the C++/C# IDE are 2 different IDEs that cannot be integrated into one (unlike the pro version). On top of that, these IDEs are superficially similar, but many things are different, it is all rather confusing and frustrating.
Therefore: I was playing with the idea of abandoning the MS Visual C# 2010 Express IDE and use Code::Blocks as a C# IDE instead. Compiling C# from the command line is doable using the "csc" compiler
http://www.youtube.com/watch?v=q0eoZDXMlVcI can do without C# syntax highlighting, but using C::B global variables in pre/post build step is something I would like to have.
Would it work to simply pretend that C# was an odd C++ compiler and get it to work along the lines of
http://stackoverflow.com/questions/5604183/adding-compiler-to-codeblocksand somehow get it associated only with files with .cs suffix?
I found this page talking about something similar, but it is 5 years old:
http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_systemPointers to most up-to-date explanations would be welcome.