Martin Bodocky

No less, no more. Just live between code.

How to use SPDisposeCheck in Visual Studio as External Tool


Hi Guys,

All we know that SharePoint Objects can be really hungry to memory, The SPDisposeCheck is great tool to recognize where we forgot dispose our sharepoint objects. More information about why disposing and best practise are here.

SPDisposeCheck we can download here. After install go : Tools -> External Tools.. -> Click on “Add”. Fill out this properties:

  • Title : “SharePoint Dispose Check” (It’s up to you)
  • Command: “C:\Program Files (x86)\Microsoft\SharePoint Dispose Check\SPDisposeCheck.exe” (It’s depend on where you installed SPDisposeCheck)
  • Arguments: “$(TargetName)$(TargetExt)”
  • Initial directory: “$(TargetDir)”
  • Use Output window : “checked”

After simply execute Tools->SharePoint Dispose Check:

Have a nice day guys and enjoy your SharePoint!

Martin Bodocky

About these ads

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 )

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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: