[Mono-list] Mono on Linux and Missing methods

Heatphoenix heatedphoenix at gmail.com
Tue May 19 14:45:41 UTC 2015


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.


More information about the Mono-list mailing list