spug.jpg
This project is on the wings of the newly formed SharePoint Portuguese User Group /Comunidade Portuguesa de SharePoint
Please visit us at www.sharepointpt.org



spugdisposecheck.png


ENGLISH VERSION

SpugDisposeCheck - Visual Studio Addin for validating Sharepoint dispose objects
AddIn that wraps the SPDisposeCheck Tool from Microsoft for SharePoint and fully integrate it with Visual Studio.
Vs2008, Vs2010 and SharePoint 2007 and Sharepoint 2010


The Dispose() methods of SharePoint objects (SPSite and SPWeb) are one of the important things us developers have to deal with.

Many of the SharePoint methods allocate memory not released by garbage collector causing inumerous problems in our applications

Microsoft has published a MSDN whitepaper(http://msdn.microsoft.com/en-us/library/aa973248.aspx) by Mike Ammerlaan and Scott Harris, with some guidance and Roger Lamb provides continuous additional details and discussion on his MSDN SharePoint Developer blog(http://blogs.msdn.com/rogerla/default.aspx).

To solved some of this problems, Microsoft released SPDisposeCheck Tool (command line tool)

SPDisposeCheck is a tool to help us to check your assemblies that use the SharePoint API so that we can build better code.
It provides assistance in correctly disposing of certain SharePoint objects to help you follow published best practice.

SPDisposeCheck.exe takes the path to a managed .DLL or .EXE or the path to a directory containing many managed assemblies.
It will recursively search for and analyze each managed module attempting to detect coding patterns based on the MDSN article.



In addition to that , the SharePoint Portuguese User Group wants to help out and because of it , i've developed one AddIn that wraps the SPDisposeCheck Tool from Microsoft and fully integrate it with Visual Studio.


Great stuff i think!

The addin works in Vs2008, Vs2010 and SharePoint 2007 and SharePoint 2010

You can download the Microsoft SPDisposeCheck Tool from here:http://code.msdn.microsoft.com/SPDisposeCheck
The Addin from here:http://spugpt.codeplex.com/releases/view/43092#DownloadId=158433
And a couple of examples from here http://spugpt.codeplex.com/releases/view/43092#DownloadId=115297

Also i made available a small video. You can watch it here:http://www.youtube.com/watch?v=VS4RcibZKJw
Any question feel free to ask

Rodrigo Pinto (Scoutman)
SharePoint Specialist, Evangelist
SharePointPt Founder (www.sharepointpt.org)
stationsolutions@gmail.com



PORTUGUESE VERSION


spugdisposecheck.png



SpugDisposeCheck - Visual Studio Addin para validação do Dispose para objectos SharePoint



Os métodos de Dispose() dos objectos SharePoint (SPSite and SPWeb) são uma das mais importantes coisas que nós developers temos que lidar.

Muitos dos métodos nos bjectos SharePoint, alocam memória que não é libertada pelo Garbage Collector causando inúmeros problemas nas aplicações que desenvolvemos.

A Microsoft publicou um whitepaper no MSDN (http://msdn.microsoft.com/en-us/library/aa973248.aspx) por Mike Ammerlaan e Scott Harris, com algum guidance e
Roger Lamb fornece-nos conitnuamente detalhes e forums nos seu MSDN SharePoint Developer blog(http://blogs.msdn.com/rogerla/default.aspx).

De forma a resolver alguns deste problemas a Microsoft lançou o SPDisposeCheck (command line tool)

SPDisposeCheck é uma ferramenta que nos ajuda a verificar os assemblies que usam a API do SharePoint, para que consigamos desenvolver melhor código.
A ferramenta ajuda-nos no correcto "dispose" de certos objectos do Sharepoint seguindo as melhores práticas .

SPDisposeCheck.exe tem por parâmetro o path para uma managed .DLL ou .EXE, ou o path de uma pasta contendo managed assemblies.
Recursivamente, procura e analiza cada managed module , tentando detectar padrões de código baseados no artigo MSDN .

A recém-formada Comunidade Portuguesa de SharePoint também quer ajudar : desta forma, desenvolvi um AddIn que nada mais faz que ser um wrapper da SPDisposeCheck Tool da Microsoft e está completamente integrado com o Visual Studio.

Cool não? ;)

O AddIn trabalha em Vs2008 , Vs2010 e SharePoint 2007 e SharePoint 2010

Podem fazer o download da app Microsoft SPDisposeCheck Tool aqui :http://code.msdn.microsoft.com/SPDisposeCheck
Do Addin aqui:http://spugpt.codeplex.com/releases/view/43092#DownloadId=158433
E de alguns exemplos aqui: http://spugpt.codeplex.com/releases/view/43092#DownloadId=115297

Encontra-se também disponível um pequeno video. Podem vê-lo aqui:http://www.youtube.com/watch?v=VS4RcibZKJw


Qualquer questão é só perguntar

Rodrigo Pinto (Scoutman)
SharePoint Specialist, Evangelist
SharePointPt Founder (www.sharepointpt.org)
stationsolutions@gmail.com

Last edited Oct 17, 2010 at 2:46 AM by Scoutmanpt, version 5

Comments

No comments yet.