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,438
  • 68
  • 55
  • 126
Mikael Sundberg
  • 4,457
  • 4
  • 30
  • 36

1 Answers1

1

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

Community
  • 1
  • 1
Quintin Robinson
  • 78,970
  • 14
  • 121
  • 132