Scott Dorman

ephemeral segment

  Home  |   Contact  |   Syndication    |   Login
  603 Posts | 10 Stories | 862 Comments | 51 Trackbacks

News


Post Categories

Image Galleries


Microsoft Store


Creative Commons License



Locations of visitors to this page

Subscribers to this feed

TwitterCounter for @sdorman

View blog authority

Add to Technorati Favorites

Windows Live Alerts

AddThis Social Bookmark Button

LinkedIn profile

Community Credit profile

The Code Project

Follow me on Twitter

Get Free Shots from Snap.com

Community Credit Hall of Fame

Get Feedghost

Xobni outlook add-in for your inbox



Support This Site

Tag Cloud


Article Categories

Archives

Post Categories

Image Galleries

Last month, I talked about multi-targeting, one of the new features in Visual Studio 2008. According to Krzysztof, the idea of Red and Green bits made this possible. Everything sounds good, so far. However, there is a very limited number of APIs that have been added to the Red bits that the multi-targeting system isn't able to detect. What this means is that if you set the target to the .NET Framework 2.0 and use one of these new changes, the compiler will not issue a warning or an error. The application will compile just fine, but will fail at runtime.

image

In order to help deal with this issue, Krzysztof has written a custom FxCop rule that can analyze an assembly targets at the .NET Framework 2.0 and warn you about calls to members that aren't present in the 2.0 RTM. This is a sample project, and is provided without any guarantees. Hopefully, it will get some more polish and make it's way into either the VS2008 RTM release or an update to FxCop. To install the rule, build the sample project and copy the rules to the FxCop directory.

posted on Friday, October 05, 2007 1:32 AM

Feedback

# re: Multi-Targeting FxCop Rules 10/5/2007 9:56 AM Steven Harman
Scott,
Now that I've got Subtext setup for muti-targeting, do you think you could add this rule to the Subtext FxCop rule-set?

# re: Multi-Targeting FxCop Rules 10/5/2007 11:29 AM Scott
@Steve, I will look into adding this for Subtext.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: