You should be able to take the same compiler call that you would make in the command line and recreate it using the Process
class. The MSDN page has examples of how to use Process
.
Can you compile a C++ file from another program to produce assembler output?
-
10-12-2021 - |
Frage
Is there a way to compile a C++ file from C#, assuming the compiler (G++ or VC++) is installed on the computer?
Lösung
Andere Tipps
Yes you would just invoke the c++ compiler with the proper arguments. However there are tools custom built to do just this Make and msbuild for example so I would doubt that a new tool would better serve you.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow