1

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...

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Mikael Sundberg
  • 4,607
  • 4
  • 32
  • 36

1 Answers1

1

Take a look Here: Conditional compilation depending on the framework version in C#

Community
  • 1
  • 1
Quintin Robinson
  • 81,193
  • 14
  • 123
  • 132