<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx</link><description>In response to a recent thread The Good and the Bad: Obsoletion in the Framework and LOTs of internal discussion , I have written this short whitepaper that describes the intent of using obsolete in the .NET Framework and how it affects your development</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: DRAFT Whitepapr: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#268031</link><pubDate>Mon, 22 Nov 2004 18:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:268031</guid><dc:creator>Stuart Ballard</dc:creator><description>Shame that #pragma doesn't work in VS2003 :(</description></item><item><title>re: DRAFT Whitepapr: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#268061</link><pubDate>Mon, 22 Nov 2004 19:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:268061</guid><dc:creator>Neyah</dc:creator><description>Nice article.  It looks to me like after reading this whitepaper, you couldn't really have any other questions as to how to handle the obsolete warnings.  You explained the problem, gave example problems, and example solutions.&lt;br&gt;&lt;br&gt;Couple of nit-pick typos :&lt;br&gt;Header has Whitepapr instead of Whitepaper.&lt;br&gt;Under Summary 2), #pargma instead of #pragma.&lt;br&gt;&lt;br&gt;One that might confuse people:&lt;br&gt;Where discussing XmlSchemaSet vs XmlSchemaCollection, you put :&lt;br&gt;... you will discover that XmlSchemaSet was obsoleted ...&lt;br&gt;rather than :&lt;br&gt;... you will discover that XmlSchemaCollection was obsoleted  ...</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#268308</link><pubDate>Tue, 23 Nov 2004 04:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:268308</guid><dc:creator>Brad Abrams[MSFT]</dc:creator><description>Thanks Neyah!</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#268863</link><pubDate>Wed, 24 Nov 2004 00:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:268863</guid><dc:creator>Brian McManus</dc:creator><description>I've been trying to do exactly the same kind of improvement to our .net codebase using the Obsolete attribute, however I was reluctant to do so because we use &amp;quot;TreatErrorsAsWarnings&amp;quot;.&lt;br&gt;&lt;br&gt;We also use FXCop so this approach is perfect; except that the current FXCop (1.312) does not contain the rule ConsiderNotUsingObsoleteFunctionality!&lt;br&gt;&lt;br&gt;I haven't had a chance to check my VS2005 with FXCop built in to see if there are any additional rules [also seems to be a bug with running it straight after build] so I'd be interested to know if there will be an FXCop update any time soon?&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;Brian</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#268888</link><pubDate>Wed, 24 Nov 2004 00:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:268888</guid><dc:creator>Brad Abrams [MSFT]</dc:creator><description>Thanks for your comments Brian… your reluctance around TreatErrorsAsWarnings is exactly the issue I hoped to address with this paper.  Please let me know if you think our guidance there is clear enough.   I hope it makes your job easier.&lt;br&gt;&lt;br&gt;On the FxCop rule… well, that is another reason why this is just a draft, the rule is not yet ready for prime time.  It is not in any public FxCop drop, but the FxCop guys assure me they will have it for Whidbey RTM. &lt;br&gt;</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#269138</link><pubDate>Wed, 24 Nov 2004 09:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:269138</guid><dc:creator>Brian McManus</dc:creator><description>&lt;br&gt;The guidance is spot on Brad.  &lt;br&gt;&lt;br&gt;The only other comment I would make is regarding developers using this attribute. &lt;br&gt;&lt;br&gt;While I understand the article is primarily guidance around framework generated messages it may be useful to point out that this attribute can be used to promote evolutionary improvement in any .net codebase/components without a big bang effect.&lt;br&gt;&lt;br&gt;Keep up the great posts,&lt;br&gt;&lt;br&gt;Brian</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#269167</link><pubDate>Wed, 24 Nov 2004 12:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:269167</guid><dc:creator>Brian McManus</dc:creator><description>&lt;br&gt;.... or you could just link to my post on the subject :-)&lt;br&gt;&lt;br&gt;&lt;a target="_new" href="http://seattlesurfer.blogspot.com/2004/11/evolution.html"&gt;http://seattlesurfer.blogspot.com/2004/11/evolution.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Brian</description></item><item><title>1.0 || 1.1 </title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#270509</link><pubDate>Fri, 26 Nov 2004 04:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:270509</guid><dc:creator>Dela's Ramblings</dc:creator><description /></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#270760</link><pubDate>Fri, 26 Nov 2004 17:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:270760</guid><dc:creator>Michael Giagnocavo</dc:creator><description>I think it's nice to give guidance on how to disable this warning. I suppose the fault doesn't lie with the BCL, but the compilers that generate warnings.</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#272433</link><pubDate>Tue, 30 Nov 2004 19:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:272433</guid><dc:creator>Joshua Flanagan</dc:creator><description>I would like one clarification:&lt;br&gt;&lt;br&gt;&amp;quot;When this is the intent the member will be marked with Error=True in the ObsoleteAttribute indicating that a compiler error (rather than warning) should be generated. You are strongly recommended to migrate your projects off these members to ensure they work seamlessly on future versions of the .NET Framework.&amp;quot;&lt;br&gt;&lt;br&gt;You say &amp;quot;strongly recommended to migrate&amp;quot;... but does the developer really have a choice?  If Error=True causes a compiler error, I would think you would HAVE to stop using the obsolete type/member.</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#272438</link><pubDate>Tue, 30 Nov 2004 19:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:272438</guid><dc:creator>Brad Abrams [MSFT]</dc:creator><description>Yup, Joshua, that is a fair point... you do have to move off those Error=True members if you move to the new version.  I will update the paper.</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#272527</link><pubDate>Tue, 30 Nov 2004 21:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:272527</guid><dc:creator>Stuart Ballard</dc:creator><description>I hope/assume there will be some Intellisense magic to ensure that anything marked ObsoleteAttribute(Error=true) will not show up?&lt;br&gt;&lt;br&gt;Actually, it would be great if anything Obsolete at all showed up in a different color (grey, for example) and had low precedence in the string matching algorithm...</description></item><item><title>re: DRAFT Whitepaper: Dealing with Obsolete error messages</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#272547</link><pubDate>Tue, 30 Nov 2004 22:18:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:272547</guid><dc:creator>Brad Abrams[MSFT]</dc:creator><description>Excellent idea... let me float it buy a few people.</description></item><item><title>1.0 || 1.1 </title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#612946</link><pubDate>Thu, 01 Jun 2006 16:51:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:612946</guid><dc:creator>briandela</dc:creator><description /></item><item><title>Dare Obasanjo aka Carnage4Life - C# 3.0 vs. Ruby: Thoughts on Extension Methods and Open Classes</title><link>http://blogs.msdn.com/brada/archive/2004/11/22/267950.aspx#7204827</link><pubDate>Wed, 23 Jan 2008 07:00:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7204827</guid><dc:creator>Dare Obasanjo aka Carnage4Life - C# 3.0 vs. Ruby: Thoughts on Extension Methods and Open Classes</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.25hoursaday.com/weblog/2008/01/23/C30VsRubyThoughtsOnExtensionMethodsAndOpenClasses.aspx"&gt;http://www.25hoursaday.com/weblog/2008/01/23/C30VsRubyThoughtsOnExtensionMethodsAndOpenClasses.aspx&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>