[Mono-dev] Mono.Posix Cross Compiling

David Curylo curylod at asme.org
Tue Jan 6 03:01:15 UTC 2015


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 <gregoryyoung1 at 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 at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list