Calling the Mono C # Compiler

To call the MS C # compiler, there is CSharpCodeProvider ( http://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider.aspx )

but what can I call the Mono compiler?

I want to know if there were errors after compilation.

+4
source share
4 answers

I did not use Mono, but fast Bing included the following Microsoft.CSharp.CSharpCodeProvider in the Mono documentation, is it possible that Mono implements functionality aimed at the Mono C # compiler.

+2
source

Mono has a better approach (which should be provided in .NET 5, probably)

http://tirania.org/blog/archive/2008/Sep-10.html

+4
source

You should take a look at MonoDevelop. This is a full-featured IDE for the Mono project, talking about C #, F # and others. You can create a project, generate classes, insert your source, and it will take care of everything.

Speaking of the compiler: It is called mcs if you exported mono to your PATH. man mcs/mcs --help .

0
source

Perhaps using Microsoft.CSharp.dll from Mono will cause the Mono implementation of the Microsoft C # compiler, which is the same as Microsoft.

To call Mono-specific C # compiler functions, use Mono.CSharp.dll

0
source

Source: https://habr.com/ru/post/1311995/


All Articles