I am maintaining .net 1.1 and .net 3.5 c# code at once. For this purpose I created two csproject files, one for .net 1.1 and another for .net 3.5.
Now, in my source code I am adding new features that are only available in .net 3.5 version, but I also want the code to compile in VS 2003, without the new features. Is there anyway to do a conditional compile based on the compiler version?
In C++ I can do this by checking the value for the macro _MSC _VER, but I am looking for an C# equivalent.