Krzysztof Cwalina (one of the Microsoft CLR designers) points out that while VS 2008 Mutli-Targeting Support is a great thing, there are some limitations/situations where you could build and test an application on a machine with VS 2008 (and thus .NET 3.5, 3.0 & 2.0) installed and compile and run that code without issue. However, if you run (or even compile) that code on a machine with only .NET 2.0 installed you will receive a run-time error because it is using members that are not present in the .NET 2.0 framework. He was kind enough to create a set of FxCop rules that can detect this issue and warn you before you go throwing run-time errors when you deploy your application.
Please reference Krzysztof's article FxCop Rule for Mutli-Targeting for a more thorough discussion of the issue as well as a link to download the FxCop rules.
No comments:
Post a Comment