Welcome!

Silverlight Authors: Michael Sheehan, Hovhannes Avoyan, Yeshim Deniz, Maureen O'Gara, Mark O'Neill

Related Topics: Silverlight, .NET

Silverlight: Blog Feed Post

Solution Dependencies in SharePoint 2010

I often got asked what order do I install these solution packages in

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.

Read the original blog entry...

More Stories By Corey Roth

Corey Roth is a consultant at Stonebridge specializing in SharePoint for clients in the energy sector. He has more than ten years of experience delivering solutions in the energy, travel, advertising and consumer electronics verticals.

Corey specializes in delivering ECM and search solutions to clients using SharePoint. Corey has always focused on rapid adoption of new Microsoft technologies including Visual Studio 2010, .NET Framework 4.0, and Silverlight.

He is a member of the .NET Mafia (www.dotnetmafia.com) where he blogs about the latest technology and SharePoint. He is dedicated to the community and speaks regularly at user groups and SharePoint Saturdays.