smatter
smatter

Reputation: 29248

Building C# console project from Linux terminal using Mono

I have Mono Develop installed on my Ubuntu machine. How could I build my C# console project from terminal. My objective is to write a Makefile.

I wish to find out the equivalent of:

msbuild MyProject.csproj /p:OutputPath=%~dp0

Upvotes: 6

Views: 6190

Answers (2)

Femaref
Femaref

Reputation: 61497

You can use xbuild to build sln or csproj files. xbuild is bundled with a standard mono install.

Upvotes: 11

Reed Copsey
Reed Copsey

Reputation: 564821

You can call dmcs, which is the .NET 4 Mono compiler, directly. For details, see the CSharp Compiler page.

Upvotes: 2

Related Questions