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

Posts Tagged ‘visual studio 2012’

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

Posted in SharePoint, SharePoint 2010, SharePoint 2013 | Tagged: , , , | Leave a Comment »

SharePoint 2013 Project Templates missing in Visual Studio 2012

Posted by Paul on August 13, 2013

When i opened Visual Studio 2012, I cannot find any SharePoint 2013 templates there..(only 2010, 2007 templates are visible)

image

How to get SharePoint 2013 Templates?

You need to download & install Office Developer Tools for Visual Studio 2012:

http://www.microsoft.com/visualstudio/eng/office-dev-tools-for-visual-studio

image

Following is the screen shot of the Wizard.

image

Before Installation, please make sure you close all the instances of Visual Studio 2012.

After Installation

Posted in SharePoint 2013 | Tagged: , , | Leave a Comment »