Questions tagged [mono]

Mono is an open source implementation of .NET that runs on many platforms, including Linux, Mac OS X, and Windows. This allows running .NET applications on platforms other than Windows with little to no modification. Do NOT use this tag for questions about Java/Spring - use [spring]/[java] instead.

Mono, the open source development platform based on the .NET framework, allows developers to build Linux and cross-platform applications with improved developer productivity. Mono's .NET implementation is based on the ECMA standards for C# and the Common Language Infrastructure, but it also re-implements many Microsoft proprietary components like ADO.NET, WebForms, and WinForms.

Mono includes both developer tools and the infrastructure needed to run .NET client and server applications.

Since Microsoft open sourced .NET Core, the Mono repo has started to lose its importance in the ecosystem. Contribution to it fell significantly after 2020 and many reported issues remain opened.

Features:

  • Multi-Platform Runs on Linux, OS X, BSD, and Microsoft Windows, including x86, x86-64, ARM, s390, PowerPC and much more

  • Multi-Language Develop in C# 4.0 (including LINQ and dynamic), VB 8, Java, Python, Ruby, Eiffel, F#, Oxygene, and more

  • Binary Compatible Built on an implementation of the ECMA's Common Language Infrastructure and C#

  • Microsoft Compatible API Run ASP.NET, ADO.NET, Silverlight and Windows.Forms applications without recompilation

  • Open Source, Free Software Mono's runtime, compilers, and libraries are distributed under OSI approved licenses and are available for dual-licensing

  • Comprehensive Technology Coverage Bindings and managed implementations of many popular libraries and protocols

Link:

10001 questions
36
votes
8 answers

Should I use Mono on a real project?

Has anyone used Mono, the open source .NET implementation on a large or medium sized project? I'm wondering if it's ready for real world, production environments. Is it stable, fast, compatible, ... enough to use? Does it take a lot of effort to…
John Smelty
  • 361
  • 3
  • 3
35
votes
3 answers

How to reference these packages with Mono in order to compile

I'm trying to compile a C# script with Mono on Debian by command line, like this: gmcs Main.cs However, I get the following error: Main.cs(6,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you…
Alasdair
  • 13,348
  • 18
  • 82
  • 138
35
votes
4 answers

Is it possible to run LINQPad with Mono (Mac)

I have installed Mono 2.6.7 in Snow Leopard and would like to run LINQPad. I've gotten LINQPad (v2.21) to start but immediately get a FileNotFoundException. Has anyone been able to run it successfully? I assume the exception is because it's trying…
kwcto
  • 3,494
  • 2
  • 26
  • 33
35
votes
2 answers

How can I conditionally compile my C# for Mono vs. Microsoft .NET?

I need a conditional compilation switch that knows if I am compiling for the mono or MS .NET runtime. How can I do this?
Frep D-Oronge
  • 2,618
  • 3
  • 27
  • 27
34
votes
6 answers

SmtpClient with Gmail

I'm developing a mail client for a school project. I have managed to send e-mails using the SmtpClient in C#. This works perfectly with any server but it doesn't work with Gmail. I believe it's because of Google using TLS. I have tried setting…
simonbs
  • 7,932
  • 13
  • 69
  • 115
34
votes
6 answers

How to get the AssemblyVersion of a .Net file in Linux

Is there any way to obtain the AssemblyVersion of a .Net executable in Linux without using mono? What I am trying to have is a script or command that will let me obtain the AssemblyVersion on Linux boxes. I tried: #strings file.exe | grep…
Freddy
  • 3,064
  • 3
  • 26
  • 27
34
votes
7 answers

Does Mono .NET support and compile C++ / CLI?

Does Mono .NET support and compile C++ / CLI? If not, do you know if they have any plans of supporting it?
Brian R. Bondy
  • 339,232
  • 124
  • 596
  • 636
34
votes
5 answers

Check if Object is Dictionary or List

Working with .NET 2 in mono, I'm using a basic JSON library that returns nested string, object Dictionary and lists. I'm writing a mapper to map this to a jsonData class that I already have and I need to be able to determine if the underlying type…
user1711383
  • 778
  • 2
  • 11
  • 20
34
votes
1 answer

Does Mono have the equivalent of ILDASM?

Is there an equivalent of ILDASM for Mono?
Iain Holder
  • 14,172
  • 10
  • 66
  • 86
33
votes
13 answers

What are the main benefits of using Mono over Java?

What are the main benefits of using Mono over Java (or any other "free" or Linux-friendly language/runtime)? Mono will always trail behind the latest developments in the .NET framework, why would you want to use Mono over another traditional…
Andy White
  • 86,444
  • 48
  • 176
  • 211
33
votes
10 answers

How to include the reference of DocumentFormat.OpenXml.dll on Mono2.10?

I am using C#.net Windows Desktop Application.I want to run these application with other platform also. So, i am using Mono 2.10 as a cross compiler.While running,unexpectedly my Application is terminated by saying the error message like …
Saravanan
  • 11,372
  • 43
  • 143
  • 213
33
votes
1 answer

nameof with Generics

I was experimenting with nameof with generics. I didn't get the result I was expecting. I'm not sure if this is part of the spec or not. class MainClass { public static void Main (string[] args) { Console.WriteLine ($"Hello {…
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
33
votes
10 answers

What's the best setup for Mono development on Windows?

I started trying to play with Mono, mostly for fun at the moment. I first tried to use the Visual Studio plugin that will convert a csproj into a makefile, but there seemed to be no version available for Visual Studio 2005. I also read about the…
Chris Farmer
  • 24,974
  • 34
  • 121
  • 164
33
votes
6 answers

Linux .NET remote debugging from Visual Studio

I would like to remote debug a C# console application running on Linux from Visual Studio. Here's what I found so far: http://www.mono-project.com/Debugger The Mono runtime implements a debugging interface that allows debuggers and IDEs to debug…
Anlo
  • 3,228
  • 4
  • 26
  • 33
33
votes
2 answers

WCF support in Mono

I am trying to figure out what is and isn't supported for WCF under Mono. I have read the WCF Development Documentation on the Mono Project page. For anyone with experience using WCF under Mono, are there any gotchas I should be aware of?
Armbrat
  • 2,295
  • 1
  • 23
  • 32