Makefile for C# console programs
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 co开发者_如何学Gourse 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 have a Visual Studio installed just create a batch file and call
devenv your_project_complete_path
Or use MsBuild as provided in sample.
or use csc as provided in sample.
精彩评论