[Solved] Compile c code in c# project


Process.Start will let you run any application including GCC (or any other compiler/make utility) and pass arguments.

Process.Start("gcc.exe", "my.c");

You probably need more command line options than just file name (i.e. output/include folder locations) and may need to specify path to compiler if it is not already available in the PATH environment variable.

3

solved Compile c code in c# project