The #develop teamblog
 Monday, September 18, 2006

A feature that was implemented rather early in the codebase of SharpDevelop2 2.1 is support for code analysis via FxCop. This code analysis tool comes in really handy to for example spot security problems in your code (discussed in the article A Look Inside the Security Development Lifecycle at Microsoft), or more general, detect coding errors (please see the article Bad Code? FxCop to the Rescue, or FxCop, Your .NET Cop).

How does it look like? It integrates with the build system and errors / warnings are displayed alongside compiler warnings:

FxCop is not enabled by default, you have to do that in the project options:

It is considered good coding practice to enable code analysis.

Categories: Chris
Monday, September 18, 2006 1:29:55 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [1]Tracked by:
"SharpDevelop2 2.1 Beta 1 released" (Alex on ASP.NET) [Trackback]
"SharpDevelop2 2.1 Beta 1" (this.Pose() as Expert) [Trackback]

 



Friday, January 05, 2007 12:14:57 AM (W. Europe Standard Time, UTC+01:00)
I am having trouble getting the FxCop add-in to play nice with SharpDevelop. When I choose 'Check with FxCop' from the right click menu for the project the output is

Error : CA0053 : * Failed to load rules file 'C:\Program': Unable to find the specified file.
Error : CA0051 : No rules were selected.

In the AddIn Manager the options for the Code Analysis AddIn shows the FxCop diretory path as 'C:\Program Files\Microsoft FxCop 1.35'. So the question is do I have the correct FxCop installed and and do I have it correctly configured? If not what do I need to do to get it to work. This integration would be awesome and then some.
Joshua Stein
Comments are closed.

© Copyright 2008 SharpDevelop Core Team

Subscribe to this weblog's RSS feed with SharpReader, Radio Userland, NewsGator or any other aggregator listening on port 5335 by clicking this button.   RSS 2.0|Atom 1.0  Send mail to the author(s)

 

Copyright ©2000-2007 IC#Code. All rights reserved. Projects sponsored by AlphaSierraPapa.