30 Sep 2011

Assembly and Solution Validator SharePoint


Namespace: Microsoft.SharePoint.UserCode

Base Class: SPSolutionValidator,


public virtual void ValidateAssembly(SPSolutionValidationProperties properties,
SPSolutionFile assembly);
public virtual void ValidateSolution(SPSolutionValidationProperties properties);


ValidateAssembly : Validates a single assembly

ValidateSolution: Validate entire solution

To deploy a solution validator you need to select a farmlevel solution and add a farm-level feature.

A solution validator must be registered in the environment, and for this purpose, you can use
a Windows PowerShell script or a custom feature with a feature receiver, both registering the
solution validator by using the SharePoint Server Object Model.

No comments:

Post a Comment