Greg,

If you edit the .csproj file, you can have a platform-specific reference 
Mono.Posix like this:

<Reference Include="Mono.Posix" Condition=" '$(OS)' != 'Windows_NT' " />

On Windows with Visual Studio or msbuild, the reference will be ignored.  
Building under mono with Xamarin Studio, Monodevelop, or xbuild, the reference 
will be included.

-Dave

On Jan 5, 2015, at 6:08 PM, Greg Young <gregoryyou...@gmail.com> wrote:

> Have anyone used mono.posix or mono.unix.native in a cross compiling
> scenario where you have to support visual studio builds? How did you
> handle this? I don't seem to be able to do a platform specific
> reference.
> 
> I am not using much out of it and it seems like just copy/pasting the
> extern definitions to monoposixhelper might be the easiest way.
> 
> Any ideas?
> 
> Greg
> 
> -- 
> Studying for the Turing test
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to