Is there an easy way in C# to have conditional compilation symbols based on OS version

Posted by John Simons on Stack Overflow See other posts from Stack Overflow or by John Simons
Published on 2010-05-13T23:27:01Z Indexed on 2010/05/13 23:34 UTC
Read the original article Hit count: 276

Filed under:
|

I have a bunch of unit tests that need to be conditional compiled based on Windows OS version. This unit tests are testing TxF that is only available in Windows Vista and above.

#if WIN_OS_VERSION >= 6.0
// Run unit tests
#endif

© Stack Overflow or respective owner

Related posts about c#

Related posts about conditional-compilation