How to Check .Net 2.0 assembly for Calls to .Net 3.5
- by Paul Farry
I've found an issue I believe where an assembly is making a call to a .Net3.5 method in a .Net2.0 only environment. (None on the .Net service packs nor .Net 3.5 is installed)
I'd like to know if there are any programs that I can run like FXCop to check an assembly for adherence to only making method calls that are available in .Net 2.0 without the 3.5 extensions that were added.
I've been bitten by this before and I'd like to have a way to check assemblies so that before they are released they can be checked to prevent these kinds of issues.
Please don't say require .Net 3.5 because whilst I'd like to go to this, it's just not possible at this point.