Comments on: And yes, this is filed under Linq as well. http://jrwren.wrenfam.com/blog/2006/10/31/and-yes-this-is-filed-under-linq-as-well/ babblings of a computer loving fool Mon, 21 Nov 2016 19:37:12 +0000 hourly 1 https://wordpress.org/?v=4.7.2 By: jrwren http://jrwren.wrenfam.com/blog/2006/10/31/and-yes-this-is-filed-under-linq-as-well/comment-page-1/#comment-9296 Tue, 31 Oct 2006 20:41:11 +0000 http://little.xmtp.net/blog/2006/10/31/and-yes-this-is-filed-under-linq-as-well/#comment-9296 I found this in the NOTES section of the mcs man page

During compilation the MCS compiler defines the __MonoCS__ sym-
bol, this can be used by pre-processor instructions to compile
Mono C# compiler specific code. Please note that this symbol
is only to test for the compiler, and is not useful to distin-
guish compilation or deployment platforms.

While Mono does work on Windows, I’m not sure that Microsoft.VisualStudio.* will ever be in the Mono gac. While one could use the mono compiler and run on .net on win32, i don’t think it is a very common use case. Using this define is probably a good solution.

]]>
By: Ayende Rahien http://jrwren.wrenfam.com/blog/2006/10/31/and-yes-this-is-filed-under-linq-as-well/comment-page-1/#comment-9290 Tue, 31 Oct 2006 17:33:25 +0000 http://little.xmtp.net/blog/2006/10/31/and-yes-this-is-filed-under-linq-as-well/#comment-9290 Does Mono have any compiler defines that I can use?
If so, I’ll just move the VS stuff to #if
Also, the XmlValidator is work-aroundable – it means that the app may fail with a cryptic message on bad files, but that is all.

]]>