visual studio 2008 - Detect .NET Framework 3.5 SP1 Dependency (cmp. 3.5 w/o SP1) -
i'm using 3.5 sp1 on machine, while our customers use 3.5 without sp1. don't know way in vs2008 target solution or project 3.5 without sp1, 3.5 sp1 have installed.
if use functions or constructors not available in 3.5 w/o sp1 code not work properly.
that is, want detect @ compile time not work without sp1.
so far have done testing (in vm or separate machine) see if application breaks, , break when we've used parts of api not available until sp1. problem breaks when code runs (at runtime), not when assembly loaded.
one solution have machine vs2008 w/o sp1 , try compile project. i'd prefer tool me detect dependency 3.5 sp1 (due use of new api, or whatever), either analyzing source code, or assemblies produce.
my google powers has not been strong enough question, hints?
i had same problem, , found solution. our application, call system.threading.waithandle.waitone(int32) got in trouble. more details on how references api's introduced in service pack releases can leak code without visual studio noticing, see krzysztof cwalina's post.
the news that, marc mentioned answer, fxcop has new rule detects these leaks. bad news rule broken in fxcop 1.36 when target .net framework 3.5. however, david kean describes how edit couple of xml configuration files fix problem. followed instructions, , fxcop detects references service pack api's.
Comments
Post a Comment