in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint 2013, SharePoint 2010, Office 365, SharePoint Online, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

Solution Dependencies in SharePoint 2010

With MOSS 2007, I often got asked what order do I install these solution packages in.  Oftentimes, it was critical that they get installed in a particular order.  With features, we have had the ability to set dependencies, but we really didn’t have anything like that for solution packages.  Well, I haven’t heard people talking about this new feature yet, but we can in fact set solution dependencies in the manifest.xml file.

The way it works is that it checks to see if a dependent solution has already been deployed on your farm (or site collection for sandbox solutions).  However, it won’t chain deploy child solutions for you like you can do with hidden dependent features.  It does this check when you attempt to deploy the feature (not when you add it).  It also won’t remove a parent solution should you remove any of its dependent child solutions.  Solution dependencies will also work between sandbox and farm solutions.  Here is what the XML looks like that you will put in your manifest file.

<ActivationDependencies>

  <ActivationDependency SolutionId="{CF4F3DC2-FE50-40bc-8F33-C58FF4F487E2}" />

</ActivationDependencies>

The last thing I’ll point out is there is no Visual Studio Designer support, but you can get to the XML through the package editor and add the necessary XML pretty easily.

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add

About CoreyRoth

Corey Roth is an independent SharePoint consultant specializing in ECM, Apps, and Search.
2015 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems