[Mono-list] Mono on Linux and Missing methods
Edward Ned Harvey (mono)
edward.harvey.mono at clevertrove.com
Thu May 21 13:39:25 UTC 2015
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Heatphoenix
> IPaddress. When targeting Mono 4.5 this function works just fine but when
> rolling it out to my Linux development environment the function throws
> 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
> 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.
Why is this confusing? You seem to answer your own question - It works in 4.5, but your target runtime environment only goes up to 4.0. So you either need to avoid using that method, or upgrade your target environment.
But then you said you upgraded to mono 4.0.1, which definitely supports 4.5. So the obvious solution seems to be, build and run with 4.5. You already said this works, and now that you have a recent version of mono runtime on your target environment, you should be good to go.
So what's the problem?
More information about the Mono-list