How can I write a Makefile (gnu make) to compile a C# console project that has several files. I understand that there are other build tools, but my course requirements force me to submit a makefile.
You can simply use the compiler for the C#, with providing right arguments to it.
Here you can find examples
According to MSDN:
If you are working on a computer that only has the Windows Software Development Kit (SDK),
you can use the C# compiler at the command line if you use the SDK Command Prompt, which is
available from the Microsoft .NET Framework SDK menu option.
Or simply install the .NET Framework (thank to the @Alexei Levenkov).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With