Thinking more...
Let's thinking more...
首頁
關於我
星期二, 三月 23, 2010
在編譯時期判定是mono或microsoft.net
Mono 提供的
FAQ: Technical
有提到如何動態判定版本與環境,但我找了好多文件都沒有提到在編譯時期是否有預設的 symbol 可用來判定。
看來只能在用 gmcs 編譯時加入 /d:MONO 了,這樣我就能在程式裡用 #if MONO 或 #if !MONO 來判定了。
0 意見(Comment):
張貼意見
較新的文章
較舊的文章
首頁
訂閱:
張貼意見 (Atom)
0 意見(Comment):
張貼意見