开发者

MonoTouch: #IF MONOTOUCH not used in Debug|Simulator

开发者 https://www.devze.com 2023-03-06 21:07 出处:网络
I have a region of code in a seperate project that is wrapped in: #IF MYNICEMONOTOUCHDEFINE Some non-Monotouch C# code here

I have a region of code in a seperate project that is wrapped in:

#IF MYNICEMONOTOUCHDEFINE
Some non-Monotouch C# code here
#ENDIF

The linker fails when we compile in DEBUG/SIMULATOR saying that that code is not found in monotouch basically.

The linker works fine and ignores that code开发者_StackOverflow社区 when compiled to DEBUG|PHONE however.

Does the DEBUG/SIMULATOR build/linker not obey the #IF ? The IDE "ghosts" the code when in Debug|Phone mode, and un-ghosts when we switch to debug|simulator

0

精彩评论

暂无评论...
验证码 换一张
取 消