I need to exclude some code from the compilation when targeting the .NET 3.5 framework, but not when targeting 2.0. Is this possible using preprocessor conditions (#if/#endif)? Or maybe some other method.
Oops, duplicate.. closing...
I need to exclude some code from the compilation when targeting the .NET 3.5 framework, but not when targeting 2.0. Is this possible using preprocessor conditions (#if/#endif)? Or maybe some other method.
Oops, duplicate.. closing...
Take a look Here: Conditional compilation depending on the framework version in C#