Code Standards, Practices, and Utilities for SharePoint


Two years ago I added a blog post on “MOSS Solution and Code Naming Conventions”. This subject comes up from time to time and, as a “quick reference”, I am posting some refinements and updates. The original is here:

Updated Links Next,

Life Cycle and Methods

Application Lifecycle Management (General):

Application Lifecycle Management (Visual Studio):

Developing Applications for SharePoint 2010:

Sandboxed Solution Considerations:

Code Acceptance:

SharePoint Development Center:

Office 365

Office 365 Developers Guide:

Utilities and Tools

SP Dispose Check (memory leaks):


StyleCop (style and consistency rules):

FxCop: See 

For FxCop, as of this writing you will need to manually extract out of the SDK .ISO file if you don’t want the full SDK installed. see 

Team Foundation Server:

Roger Lamb’s Blog:

ULS Viewer: <== added 5/16/2012

SPDiag 3.0:


Performance Counters:  <== added  1/18/2012

Quicker Downloads:

Web Performance Testing: Visual Studio Ultimate 2010 + SP1, see

Web Testing Videos:

lodctr.exe <== added 5/16/2012 (even helped fix User Code Host Service issues with SharePoint, using lodctr /r)

Web Performance Test TIP: if you are running on a local computer testing a remote machine on a different domain then run this command to be sure your remote performance counters map to the correct credentials

runas /netonly /user:domain\user "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" 

General Testing:

Results and Recommendations:

Configure Usage Reporting:

Diagnostic Logging:



Use your judgment ! You can’t do it all….be thoughtful, not draconian


PS: on a different topic – check out XAPTIC and SPDragon, my Silverlight and HTML5 widget library for SharePoint 2010


Leave a Reply

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

You are commenting using your 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