Running SharePoint 2013 in 2010 mode and solution “CompatibilityLevel”


This post is a contribution from Vitaly Lyamin, an engineer with the SharePoint Developer Support team.

SharePoint 2013 allows users to run sites in SharePoint 2010 mode.  In this scenario, the solution (WSP) deployment needs to be deployed with the “CompatibilityLevel” flag set to “All”  or {14,15}.

When deploying the solution from the Central Administration UI, there’s no option to set the “CompatibilityLevel” flag and therefore the deployment job reverts to using the “SharePointProductVersion” attribute in the solution manifest.  Since the “SharePointProductVersion” attribute can only be set to a single number, solution deployment from CA is limited to using that number for the “CompatibilityLevel” setting.

The suggested method for this type of deployment is to use PowerShell:

Install-SPSolution –Identity Solution.wsp –GACDeployment –CompatibilityLevel {14,15}

Resources:

http://technet.microsoft.com/en-us/library/ee617150.aspx

http://technet.microsoft.com/en-us/library/ff607534.aspx

http://blogs.technet.com/b/mspfe/archive/2013/02/04/planning-deployment-of-farm-solutions-for-sharepoint-2013.aspx

HTH!

Comments (6)

  1. Anonymous says:

    If this was fleshed out a bit more, I imagine that this could be a really informative article.  Cheers for posting though, I've learned something new by reading at least!

  2. Anonymous says:

    Thanks for your comments Steven!  We try our best to pull in all information and context around the posts we publish.  We will try posting with more information in our future posts. Glad that you found this informative!

  3. Nik says:

    Good post. very informativ. like steven said, i’ve learnd a bit while reading it. Thanks for sharing!

  4. sivakumar k says:

    Good Post, Given clear picture on Deployment as per compatabilty.

  5. Manjunath says:

    What if we wanna upgrade solution in compatibility mode? Ex: I have SP2010 solution running on SP2013. I added a new application page(14 hive layouts folder). Now how can I push the new page to 14 hive only?

  6. SharePoint Support says:

    Hi, Very nice description about …….
    I like your web blog.
    Because whenever i come into your web blog
    then i always get the new interesting and important information in your web blog.

    Thank You

    http://spjedi.com/remote_support/">SharePoint Support