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
47
votes
3 answers

How to use LINQ in Mono?

I can't make System.Linq (aka LINQ to Objects) work. I am running MonoDevelop 2.2.1 in Ubuntu 10 Lucid Lynx with Mono 2.4.4. They advertise in their site that they implemented LINQ, but I can't even find Enumerable.Range or ToArray(). What's wrong?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
44
votes
9 answers

Is WPF on Linux (already) possible?

I love programming with .NET, especially C# 3.0, .NET 3.5 and WPF. But what I especially like is that with Mono .NET is really platform-independent. Now I heard about the Olive Project in Mono. I couldn't find some kind of Beta. Does it already…
Hades32
  • 914
  • 2
  • 9
  • 12
44
votes
3 answers

Is it possible to run Xamarin Mono on Linux?

I want to know if it is possible to run Xamarin on Ubuntu. I don't like java, so I want to make Android apps with C#. Is a package for Ubuntu, because I haven't seen one so far? Or... Can I run Xamarin on Ubuntu using Wine? Or... Is there an…
rqmok
  • 834
  • 2
  • 9
  • 20
43
votes
9 answers

Reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found

I try to open a Unity3D project with VSCode under Linux (Ubuntu 18.10). The omnisharp extension doesn't load the project, saying assemblies were not found. It may seems very stupide, but i'm not really used to .Net yet, and i have been stuck with…
Eyap
  • 754
  • 1
  • 7
  • 22
43
votes
4 answers

MVC 5 on Mono: Could not load file or assembly 'System.Web.Entity' or one of its dependencies

Goal: Startup a ASP.NET MVC 5 project on Mono via Xamarain Studio. Error after starting server: Could not load file or assembly 'System.Web.Entity' or one of its dependencies. Error in Xamarin Studio: Background: The project was created in Visual…
jeffmaher
  • 1,824
  • 3
  • 21
  • 20
42
votes
2 answers

Install Mono on Centos 5.5 using YUM

How do I install the Mono 2.6.7 runtime on CentOS 5.5 using YUM? I know how to build Mono from the source. However, according to the page Getting Started With Mono Tools it is possible to install the binaries directly. I'd prefer to install the…
octonion
  • 759
  • 2
  • 8
  • 12
42
votes
4 answers

How can you use Mono's mcs to compile and run a csproj file?

I'm a Unix guy who needs to try and compile some C# code for work. I've downloaded Mono for Mac, and the mcs command line tool. There's a csproj file attached to this library which contains XML with all of the files I need to compile. Can Mono/mcs…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
41
votes
4 answers

MonoDevelop ARMv6 on Raspberry Pi

Will MonoDevelop compile to the ARMv6, mainly so I can get it running on my Raspberry Pi? I've noted that Debian can run on the Raspberry Pi and Debian has a set of drivers for Mono. So does this mean we'll be able to develop in Mono?
Coppermill
  • 6,676
  • 14
  • 67
  • 92
41
votes
9 answers

Compiled mono missing default .NET libraries - System.Object is not defined or imported

I've compiled mono on OS X Mavericks following the guide located here: http://www.mono-project.com/docs/compiling-mono/mac/ Now when I compile my application using xbuild I'm getting the following errors: CSC: error CS0518: The predefined type…
Geesu
  • 5,928
  • 11
  • 43
  • 72
41
votes
2 answers

Xamarin Android - Turn off Mono Logs

This might be a nit-picky thing, but in Xamarin when running an Android app, it dumps tons of lines in the console that start with [Mono] Is there any way to disable these logs? Thanks in advance
julianwyz
  • 3,104
  • 1
  • 29
  • 34
40
votes
3 answers

C# The type or namespace name `List' could not be found. But I'm importing System.Collections.Generic;

I'm having an error The type or namespace name `List' could not be found. Are you missing a using directive or an assembly reference? Sample code: using UnityEngine; using System.Collections; using System.Collections.Generic; public class city1…
CalebB
  • 470
  • 1
  • 4
  • 11
39
votes
4 answers

Mono Project: Why is mono faster than .NET?

I am surprised to observe that mono is faster than .NET. Does anyone know why is it so? I was expecting mono to be slower than .NET but wasnt the case atleast with my experiments. I have a windows xp laptop with .NET framework. I am running CentOS…
funwithcoding
  • 2,412
  • 2
  • 30
  • 41
38
votes
12 answers

Mono.Linker.MarkException: Error processing method: 'System.Void AndroidX.RecyclerView.Widget.RecyclerView/LayoutManager

I am trying to debug my Xamarin project. Framework and all packages are up to date. In iOS it works, but in Android NOT. How can I solve this problem: Mono.Linker.MarkException: Error processing method: 'System.Void…
37
votes
19 answers

Resource file "**/*.resx" cannot be found. (MSB3552) on VS for Mac

We can't build solution on vs for Mac version but the same solution can build on vs for windows (vs 2017) and it's worked. How to fix on this problem ? and can support on both (vs on windows & vs on Mac) Thanks…
Uthen
  • 627
  • 2
  • 9
  • 17
37
votes
2 answers

Access to the path "/etc/mono/registry" is denied

When I run my ASP.NET MVC 4 website on my Fedora 20 workstation with xsp4 (from MonoDevelop or directly) I'm getting the following exception: System.Web.HttpRuntime.FinishWithException (wr={Mono.WebServer.XSPWorkerRequest},…
peter
  • 14,348
  • 9
  • 62
  • 96