Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

    Advertisements
  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand
  • Advertisements

SPCOP – Another Need Tool

Posted by Paul on March 17, 2014


SPCOP CE is a Visual Studio extension to analyze SharePoint code.

SharePoint Code Check Community Edition

image

We can analyze different SharePoint versions using it:

  1. MOSS 2007
  2. SharePoint 2010
  3. SharePoint 2013

It analyzes the following:

  1. Memory Dispose Check
  2. Features, Content Types, List Templates
  3. XML files
  4. ASPX, ASCX files

It also provides continuous integration facilities.

Download

You can download the tool from:

http://visualstudiogallery.msdn.microsoft.com/c991a9ed-7a7b-465f-9be3-923443fd6e7b

image

Installation

Download & Install the tool. 

image

I am using Visual Studio 2012.  After installations restart Visual Studio.

We can do a simple testing to ensure it is working.

Testing

Create a new console SharePoint project & add a web part into it.

Inside the web part, please add the following code.

(Please note that we are not disposing the explicitly created SharePoint object)

image

Build the project & run SharePoint Code Check from the Solution Menu.

image

If successfully installed, you can see the Dispose error being caught.

image

This confirms you have SPCOP CE successfully installed.

References

http://blogs.msdn.com/b/torstenmandelkow/archive/2013/04/15/sharepoint-code-analysis-framework-beta-released.aspx

Summary

In this post we have explored another need tool for SharePoint application development.  For advanced needs like verifying WSPs, there is a client tool available with higher editions.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s