P
Praveen
Hello all,
I have some common classes that I routinely use with all the dotnet projects
that I work with. I have these classes in a separate file so that it becomes
easy for me to include them into projects.
Some of these projects are done in visual studio 2003 and some are in visual
studio 2005. lately I have started using some of the classes (FTPWebrequest)
which are specific to the dotnet framework 2.0 (VS 2005). Now this file
cannot be included into the vs2003 projects as they would give compile
errors.
I did not want to to maintain two different files for these 2 environments.
I know that we can use preprocessor directives (#if ) for this but I did not
know how to identify the IDE version (VS 2003 or VS 2005) to use in the If
directive.
Can you help me with this.
thanks in advance,
Praveen
I have some common classes that I routinely use with all the dotnet projects
that I work with. I have these classes in a separate file so that it becomes
easy for me to include them into projects.
Some of these projects are done in visual studio 2003 and some are in visual
studio 2005. lately I have started using some of the classes (FTPWebrequest)
which are specific to the dotnet framework 2.0 (VS 2005). Now this file
cannot be included into the vs2003 projects as they would give compile
errors.
I did not want to to maintain two different files for these 2 environments.
I know that we can use preprocessor directives (#if ) for this but I did not
know how to identify the IDE version (VS 2003 or VS 2005) to use in the If
directive.
Can you help me with this.
thanks in advance,
Praveen