How to Check .Net 2.0 assembly for Calls to .Net 3.5

Posted by Paul Farry on Stack Overflow See other posts from Stack Overflow or by Paul Farry
Published on 2010-05-06T23:33:57Z Indexed on 2010/05/06 23:38 UTC
Read the original article Hit count: 244

Filed under:

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.

© Stack Overflow or respective owner

Related posts about .NET