[Mono-list] Mono on Linux and Missing methods

Timotheus Pokorra timotheus.pokorra at solidcharity.com
Tue May 19 15:09:50 UTC 2015


Hello,

what version of mono do you have?
mono --version
If it is the default that comes with Debian Wheezy, then it is
probably too old (Mono 2.10.8)

It might be advisable to install the packages provided by Xamarin (Mono 4.0.1):
http://www.mono-project.com/download/#download-lin

Also the latest MonoDevelop:
http://www.monodevelop.com/download/

Hope this helps,
  Timotheus


On 19 May 2015 at 16:45, Heatphoenix <heatedphoenix at gmail.com> wrote:
> Hey everyone,
>
> Been trying to program a GTK# app that works on Linux (though GTK# is not
> directly related to my question).
> Now, the problem I've run into is that I'm using the function MapToIPv4() in
> IPaddress. When targeting Mono 4.5 this function works just fine but when
> rolling it out to my Linux development environment the function throws
>
> "Missing Method System.Net.IPAddress::MapToIPv4() in assembly
> /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll, referenced in
> assembly myapp.exe"
>
> After a bit of research, I've found out that this is because this function
> is only in MONO / .NET 4.5 and not 4.0 and seemingly my Linux environment
> only goes up to 4.0 (because if I target 4.0 it will not compile with this
> function). (4.5 also does not show up as an installed mono package, though
> something called "Mono Core library (for CLI 4.5)", does.
>
> How do I get my Linux to allow the usage of this function? Is this even
> possible? I am using Debian Wheezy (7.8). If any more information is
> required, please let me know.
> Thank you.
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Mono-on-Linux-and-Missing-methods-tp4665972.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



-- 
Kontaktdaten:
in Plauen: 03741 7424995


More information about the Mono-list mailing list