[Mono-dev] Mono.Posix Cross Compiling
curylod at asme.org
Tue Jan 6 17:34:52 UTC 2015
On Jan 6, 2015, at 11:12 AM, Edward Ned Harvey (mono) <edward.harvey.mono at clevertrove.com> wrote:
> The reason it works is because of the #if __MonoCS__ which eliminates any calls to the missing assembly.
You’re right…I didn’t realize that was what’s going on. It looks like conditional references need some hand holding like this:
<When Condition=" '$(OS)' == 'Unix' ">
<Reference Include="Mono.Posix" />
I updated the sample on GitHub. Builds on either, references work as you would expect on the different platforms without compiler warnings, but you don’t see them in the IDE since neither IDE supports these conditions.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list