[Mono-dev] Mono.Posix Cross Compiling

Greg Young gregoryyoung1 at gmail.com
Tue Jan 6 03:02:29 UTC 2015


Ah nice I didn't know you could do that. Thanks! Saves me the trouble
of copying bunches of externs :)

Greg

On Tue, Jan 6, 2015 at 5:01 AM, David Curylo <curylod at asme.org> wrote:
> 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
>



-- 
Studying for the Turing test


More information about the Mono-devel-list mailing list