Kennet
Posts: 6
Joined: Sun Jul 01, 2012 5:16 pm

Mono 2.10 ?

Wed Jul 18, 2012 6:55 am

As a Linux beginner I ask, how do I build and install Mono framework 2.10 on my PI (I need .NET 4.0)? Mono only have v2.6.7 packages for Debian Squeeze: http://mono-project.com/DistroPackages/Debian

amigarulez
Posts: 42
Joined: Wed Jul 18, 2012 10:16 am

Re: Mono 2.10 ?

Wed Jul 18, 2012 10:24 am

Haven't tried latest Rasbian/Debian but had some stability/exception issues with mono on earlier builds.

Now using latest Arch Linux it has Mono 2.10.8 and it works very well with my C# projects.

Will try latest Raspbian soon and run my tests and see if issues are solved.

amigarulez
Posts: 42
Joined: Wed Jul 18, 2012 10:16 am

Re: Mono 2.10 ?

Wed Jul 18, 2012 3:16 pm

Tried latest Raspbian today.
Version included with Raspbian
Mono 2.10.8.1 (Debian 2.10.8.1-4)

Got issues wih DateTime.Now returning year 0 and errors on System.Threading.Interlocked, so would seem somethings broken in Rasbian mono build.

So for now I will stick with Arch, which sofar has proven to be very stable, written C# daemons running for days without a hitch.

Kennet
Posts: 6
Joined: Sun Jul 01, 2012 5:16 pm

Re: Mono 2.10 ?

Wed Jul 18, 2012 4:30 pm

Thanks, I will try Arch, just have to buy some more SD cards...

What is the easiest way to transfer files on to PI for testing. Some years ago I have Suse Linux with mono framework and I could deploy and debug from VS2010 via a plug-in from mono, that I want again...

amigarulez
Posts: 42
Joined: Wed Jul 18, 2012 10:16 am

Re: Mono 2.10 ?

Wed Jul 18, 2012 6:01 pm

For "larger" projects like my C# Daemons I develop/debug in VS11 and have wrapper dll:s for posix/RPi specific stuff, when I got a good build I commit to svn and update on RPi and then run XBuild on project/solution.

For smaller projects I use nano/mcedit and the mono C# compiler directly on cs files.

Building on RPi gives me any mono specific error / warnings at compile time instead of runtime.
Also allows me to pre jit/optimize when possible/feasible, good for small consoles speeding up startup time.

I'm impressed with mono, Novell/Xamarin/etc. has done a superb job!

Kennet
Posts: 6
Joined: Sun Jul 01, 2012 5:16 pm

Re: Mono 2.10 ?

Thu Jul 19, 2012 4:32 pm

Hi,

I tested "wheezy" but I get error on running apps with winform. console apps made in .NET 2.0 works.

Also played some with "Arch", but not a Linux guro yet so I need a GUI, how do I install Gnome or some other desktop? But I did manage to install mono with "pacman -S mono"

Kennet
Posts: 6
Joined: Sun Jul 01, 2012 5:16 pm

Re: Mono 2.10 ?

Thu Jul 19, 2012 8:07 pm

OK, got Desktop and mono (.NET 4) working on Arch Linux.

Found this guide for installing desktop: http://www.cnx-software.com/2012/03/05/ ... ard-image/

amigarulez
Posts: 42
Joined: Wed Jul 18, 2012 10:16 am

Re: Mono 2.10 ?

Thu Jul 19, 2012 8:41 pm

MCEDIT has C# syntax highlighting in the console:)

Mono Develop works but a bit sluggish performance.

BorisFR
Posts: 10
Joined: Wed Jul 25, 2012 1:35 pm

Re: Mono 2.10 ?

Wed Jul 25, 2012 2:54 pm

Hello.
Just to say that my testing give the same results. Not ok on Raspbian but big success on Arch :)
I transfert directly .exe and .dll by filezilla (with ssh) from my Windows station. It's really a pleasure coding/debuging/testing with Visual Studio, then just transfert on RPI and see it working. Magic !
Mono is really a great project !

Boris

aanderson
Posts: 12
Joined: Thu Jun 28, 2012 5:11 am

Re: Mono 2.10 ?

Thu Jul 26, 2012 5:22 pm

I compiled 2.10.8 on my Pi directly using the Debian Squeeze image. Works great so far. I'm also able to develop using VS 2010 Express on my Win7 machine and then transfer the exe and dlls over and it works like a charm.

I've been building a library of items for the Pi in my github repo:
https://github.com/cypherkey/RaspberryPi.Net

ProjectMayu
Posts: 26
Joined: Sun Jul 01, 2012 8:58 am

Re: Mono 2.10 ?

Sat Jul 28, 2012 9:52 am

Do you have a script for compiling mono, i have yet been able to succeed, I either get dbm or compiler errors

aanderson
Posts: 12
Joined: Thu Jun 28, 2012 5:11 am

Re: Mono 2.10 ?

Sun Jul 29, 2012 7:06 am

I used this link:
http://nyanichan.wordpress.com/tag/inst ... n-squeeze/

I would suggest using the new Debian Wheeze image instead of Squeeze. It already has 2.10.8 packaged.

ProjectMayu
Posts: 26
Joined: Sun Jul 01, 2012 8:58 am

Re: Mono 2.10 ?

Sun Jul 29, 2012 11:41 am

In Raspbian, Mono is broken, so I was thinking of installing Mono 2.11.3 and seeing if that worked

aanderson
Posts: 12
Joined: Thu Jun 28, 2012 5:11 am

Re: Mono 2.10 ?

Mon Jul 30, 2012 3:12 am

Good to know. Thanks.

Thedge
Posts: 2
Joined: Sat Feb 18, 2012 3:29 am

Re: Mono 2.10 ?

Mon Jul 30, 2012 10:05 pm

have anyone tried to install the visual studio add ons you can use with c#? (like xml liquid ,Xna studio or Brew mobile)

thanx in advance

Return to “Other programming languages”