only My site

Monday, August 20, 2012

SharePoint Tools/Tips - Must use


SPDisposeCheck.exe

SPDisposeCheck is a tool that helps developers and administrators check custom SharePoint solutions that use the SharePoint Object Model helping measure against known Microsoft dispose best practices. This tool may not show all memory leaks in your code and may produce false positives which need further review by subject matter experts.

SPMetal.exe

A Command-line tool to generate entity class declarations for your Microsoft SharePoint Foundation solutions.

Wca.exe

The workflow communication activity command-line utility is used to generate code files for the strictly-bound HandleExternalEventActivity activity and CallExternalMethodActivity activity derived classes from an input assembly that contains one or more ExternalDataExchangeService interfaces.

WinDbg.exe 

To debug a Windows service. To debug a Windows service, you can attach the WinDbg debugger to the process that hosts the service after the service starts, or you can configure the service to start with the WinDbg debugger attached so that you can troubleshoot service-startup-related problems. This article describes both these methods. More Infor on http://support.microsoft.com/kb/824344

Wfc.exe

The workflow command-line compiler is used to compile both workflows and activities. It takes workflow markup (.xoml) and C# or Visual Basic source files, validates the workflows or activities, and generates assemblies or executables. Running wfc.exe with the /? argument provides a full list of options.

Trace.axd

You need to ensure that you can view the trace history in the Trace.axd file.

Web.Config : In the <system.web> element, add the following line of code:
<trace enabled="true" localOnly="true" pageOutput="false" />

Connectable Webpartshttp://msdn.microsoft.com/en-us/library/ms469765.aspx

SPPropertyBag

It is to add properties to a web (subsite). Properties is the SPPropertyBag object with the metadata for the website.
SPContext.Current.Web.Properties

SPWorkflowEventReceiver

The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a workflow.

Starting: Occurs when a workflow is starting
Started: Occurs when a workflow is started
Postponed: Occurs when a workflow is postponed
Completed: Occurs when a workflow is completed

SPContext.Current.FormContext

Page layour codebehind - You create a custom page layout that contains code-behind.You need to identify whether the page is in Edit mode or in Display mode.What should you use? The answer is

SPContext.Current.FormContext

Possible values for SPContext.Current.FormContext.FormMode property are Display, Edit, Invalid, and New

No comments: