Closed nicolasjinchereau closed 9 years ago
Mac OSX Yosemite
Hmm, I thought I put in .dylib-extensions already. Perhaps the OS-check is failing.
Console.WriteLine(Environment.OSVersion); I get "Unix".... That can't be right
This seems to work:
*Add reference to 'Mono.Posix'
using System;
using Mono.Unix.Native;
namespace PlatformTest
{
class MainClass
{
static bool IsMac()
{
if(Environment.OSVersion.Platform != PlatformID.Unix)
return false;
Utsname results;
Syscall.uname(out results);
return results.sysname == "Darwin";
}
public static void Main(string[] args) {
Console.WriteLine(IsMac());
}
}
}
https://github.com/aBothe/Mono-D/pull/617
I figured I should let you add the reference to Mono.Posix.dll yourself. Please see comments on pull request.
This issue should be solved now.
:+1:
shared libs get ".so" extension instead of ".dylib"