I have some .cs files that are shared amongst several projects and if possible I would like to be able to #define away things that are part of the 3.5 framework if I am attempting to compile to the 2.0 framework. Is there a #define that is already built in to do this?
Asked
Active
Viewed 346 times
1
-
1Not really, but this may help http://stackoverflow.com/questions/408908/conditional-compilation-depending-on-the-framework-version-in-c – Rich Jun 08 '11 at 16:50
1 Answers
2
You'll need to define constants based on $(TargetFrameworkVersion).
Have a look at this question.

Community
- 1
- 1

retrodrone
- 5,850
- 9
- 39
- 65