Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Makefile for C# console programs

Tags:

c#

makefile

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.

like image 490
Nemo Avatar asked Apr 09 '26 05:04

Nemo


1 Answers

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).

like image 159
VMAtm Avatar answered Apr 11 '26 17:04

VMAtm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!