Save SharePoint Farm Solutions

Source: http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/dd50264d-6f4d-4b31-bf7f-959efdbc6b7c/
Language:
C#
Keywords:
SharePoint
Code Snippet

 

SPSolutionCollection solutions = SPFarm.Local.Solutions;

foreach (SPSolution solution in solutions)
{
    SPPersistedFile wspFile = solution.SolutionFile;
    wspFile.SaveAs("c:\\wsp\\" + solution.Name);
}

 


Created 2012-01-25
comments powered by Disqus
Login