Performance: Compile in VS, Run in Mono on Windows and Linux

.net, c#, linux, mono, performance

Solution

Yes, you can do that. It should work unless the code uses some framework elements that are not implemented on mono.

Not that I am aware of.

Not sure what the difference between #3 and #1 is. If you are referring to using mono to compile on Windows, then porting it to linux, it should still work the same. Both compilers generate essentially the same IL code.

Problem

I have the following questions: - Is it possible to compile a C# project using VS.NET, and run it on mono? - Are there any performance benefits associated with approach 1 (vs compiling with the mono compiler)? - What about running the output .exe/.dll on linux? And what are the associated performance characteristics? Thanks

Original source