FxCop – Part I (Introduction)

Monday, June 15, 2009

FxCop – Part I (Introduction)

This will be a series of articles on FxCop, which explains from the basics to advanced usage of FxCop. This article is the first of them which gives an introduction to FxCop.

Definition
It is a code analysis tool which analyzes the code and gives suggestions to improve coding.

Overview
It analyzes programming elements in targets, and provides an informational report that contains messages about the targets;
It can analyze either a dll or an exe.

Target
They are nothing but managed assemblies.

Message
Messages include suggestions about how to improve the source code used to generate them.

Rule
A rule is a code which analyses and finds defects and informs about it.

For analysis 2 things are required,
1. Target assemblies
2. Rules

Running FxCop
· From GUI
After installation, you will have shortcut in Programs menu; you can start FxCop by clicking the link.
· Command Line
You can run FxCop.exe with respective command line arguments to start it from command line.

Using FxCop you can do the following:
· Manage Rules (decide which rules need to be applied to which assembly)
· Apply Styles to Reports.
· Filter and save messages.
· And also you can save and reuse application settings.

Download Link
www.microsoft.com/Downloads/details.aspx?FamilyID=9aeaa970-f281-4fb0-aba1-d59d7ed09772&displaylang=en

Similar Code Analysis tools:
StyleCop is another tool which does code analysis.

Difference between FxCop and StyleCop:
FxCop does code analysis over the binaries, whereas StyleCop does code analysis over the source code itself.

Latest Versions:
FxCop : ver. 1.36
StyleCop : ver. 4.3.1.3

Steps to do an analysis:
1. Run FxCop.
2. File > New Project.
3. Project > Add Targets.
4. Select the desired assembly you want to analyze(it can either be a dll or an exe).
5. If you have selected multiple assemblies then select any one of them ( the one you want to analyze first) and then click Project > Analyze or press F5.
6. Then it will display list of messages in the right pane.

ASP.NET PAGE LIFE CYCLE EVENTS

Saturday, May 9, 2009


PreInit  
Init
InitComplete
LoadState
ProcessPostData
PreLoad
Load
ProcessPostData
ChangedEvents
PostBackEvent
LoadComplete
PreRender
PreRenderComplete
SaveState
SaveStateComplete
Render

NUnit - Unit Testing framework for MS .NET

Sunday, April 26, 2009


What is NUnit ?


NUnit is an open source unit testing framework for Microsoft .NET. It was actually ported from JUnit.


What it's developers say?


"Initially ported from JUnit, the current production release, version 2.4, is the fifth major release of this xUnit based unit testing tool for Microsoft .NET. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features, for example custom attributes and other reflection related capabilities. NUnit brings xUnit to all .NET languages."


From where can I download?


http://www.nunit.org/index.php?p=download


Test Runners:-


1. Console Runner(nunit-console.exe).


2. GUI Runner(nunit-gui.exe).


For more information see,


http://www.nunit.org/index.php?p=home



Mono - The .NET development platform

Thursday, April 23, 2009

What is Mono?
It is an Cross-platform, Open Source .net development framework.

Novell is giving the sponsorhip for it. The objective is to enable UNIX developers develope cross platform .NET applications. The latest version is Mono 2.4.

The Components:
1. C# compiler
2. Mono Runtime
3. Base Class Library
4. Mono Class Library

How to download?
Goto the http://mono-project.com page and from there you can download

For more information :
http://mono-project.com

Description about Out of Box Libraries

Wednesday, April 22, 2009


Description about  Out of Box Libraries

What is a document library?

A document library is where you upload your core documents. They consist of a row and column view with links to the documents. When the document is updated so is the link on your site. You can also track metadata on your documents. Metadata would consist of document properties.

What are picture libraries?

Picture libraries allow you to access a photo album and view it as a slide show or thumbnails or a film strip. You can have separate folder for each event, category, etc.

What is a Slide library?

The SharePoint Slide Library is a feature that comess with MOSS only. It provides rich integration with the PowerPoint 2007 client to track slides used from the library in a presentation to ensure that updates to the master slide are notified to users of the slides

 

How to create Slide library?

 

. To create a Slide Library, you need to have at least Designer permissions.

1.       On the Site Actions menu, click  View all site content

 

  1. Clcik Create button      
  2. Under Libraries, click Slide Library.

     

             Note:    Slide Libraries can be created in only certain types of sites, such as a Team site and Document Workspace.   If
                          you  do not see Slide Library under Libraries, the type of site you are working on does not support Slide Libraries.

4.       On the New page, under Name, type a name for the library. The name appears in any navigation links that you set up.

5.       Under Description, type an optional description.

6.       Click Create.

 

LinkWithin

Blog Widget by LinkWithin

Recommended Books