Are there any preprocessor symbols which allow something like
#if CLR_AT_LEAST_3.5 // use ReaderWriterLockSlim #else // use ReaderWriterLock #endif >
#if CLR_AT_LEAST_3.5 // use ReaderWriterLockSlim #else // use ReaderWriterLock #endif
You could manually set this symbol using the /define compiler switch. Then you create different build configurations for each desired clr version.