MICROSOFT SHAREPOINT ONLINE CODE ANALYSIS FRAMEWORK (MSOCAF)

The following updates are for both the SharePoint 2010 and 2013 versions of the MSOCAF tool.

  •  New Rules
    • The SharePoint SQL Search Syntax Check looks for code that use SQL syntax to execute SharePoint search queries. As of SharePoint 2013, SQL search syntax is no longer supported. The MSOCAF 2010 tool will flag custom solutions that use SQL search syntax with a warning. These solutions should be rewritten to use an alternative search syntax prior to the SharePoint 2013 upgrade. The MSOCAF 2013 tool will flag custom solutions that use SQL search syntax with an error message. See the SharePoint Search SQL syntax section of the Changes from SharePoint 2010 to SharePoint 2013 TechNet topic for more details and remediation options: http://technet.microsoft.com/en-us/library/ff607742.aspx.
  • New Features
    • Deployments now support targeting the 15 and/or 14 hive in order to support sites running in SharePoint 2010 compatibility mode. This only applies to SharePoint 2013 environments. See the Deployment Manifest section for more details.
    • Deployments also support additional Web applications in addition to the ones already supported (Portal, MySite, TeamSite, and Partner). For more information, see the Deployment Manifest section of the MSOCAF Help file (MSOACF.chm).
      NOTE: This is not applicable for SharePoint Online 2010 Dedicated farms
  • Updates and Bug Fixes
    • Issues with the CAFUploadService have been fixed. Users can now pass the O365Admin Site URL instead of the ServiceURL. For more detail, please see the MSOCAF help guide.
    • Issues with feature activation scenarios have been fixed. Feature activation had been removed in a previous releases due to multiple issues in production, specifically with the “Redeploy” action. These problems have been fixed and customers are no longer required to submit scripts to activate features
    • Performance enhancements for rules that were previously introduced to identify code that would break during a SharePoint 2013 upgrade

To install MSOCAF,

For 2010 version, go to the MSOCAF 2010 Download Site on MicrosoftOnline.com.
For 2013 version, go to the MSOCAF 2013 Download Site on MicrosoftOnline.com.

The installation should be done using a local administrator account.

MSOCAF 2013 requires SharePoint 2013 and will not work with SharePoint 2010 in the development environment.