Solution Dependencies in SharePoint 2010

Title: Solution Dependencies in SharePoint 2010

Details: We have seen 'Feature Dependencies' until MOSS 2007. Similarly have you ever felt the need of 'Solution Dependencies'? I am sure you might have felt and then here is how your need is fulfilled in SharePoint 2010. Now we can have solution dependencies and it comes with few rules that we need to understand that are mentioned as below.
  1. Checks if dependant solution is available
  2. Does not deploy dependant solutions
  3. Checks for dependancy during the time of deployment
  4. Solution dependancy works for both kinds of solutions ( Farm / Sandboxed )
  5. Solution dependancy does not work on the combination of Farm / Sandboxed Solutions
  6. In situation when dependancy solution is not activated/deployed then activating/deploying dependant solution will fail.
  7. Opposite the above point # 6 will succeed.
  8. In case of dependancy solution is deactivated/retracted, dependant solution will still be activated/deployed.
Below is sample code on how to use it ( under package.template.xml file )...

Code:
<?xml version="1.0" encoding="utf-8"?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/"
          SolutionId="CURRENT_SOLUTION_GUID"
         <  
  <ActivationDependencies>
    <ActivationDependency SolutionId="DEPENDANT_SOLUTION_GUID"/>
  </ActivationDependencies>
</Solution>

Comments