Posts

Showing posts from May, 2015

Downloading Wsp from SharePoint Central Admin

U sing C#: protected void btnDownloadWSP_Click(object sender, EventArgs e)         {             SPSolutionCollection allSolutions = SPFarm.Local.Solutions;             foreach (SPSolution mySolution in allSolutions)             {                 SPPersistedFile myWSP = mySolution.SolutionFile;                 if (myWSP.Name == "Sample.wsp")                 {                     myWSP.SaveAs("c:\\Export All Solutions\\" + mySolution.Name);                 }             }         } Here the SPSolutionCollection , SPPersistedFile classes are referred from   Microsoft.SharePoint.Administration namespace. PowerShell: $myFarm = Get-SPFarm $myWSP = $myFarm.Solutions.Item("sample.wsp").SolutionFile $ myWSP.SaveAs("c:\Expor t all\ Sample.wsp")

A Guide to SharePoint Naming Conventions

http://www.nothingbutsharepoint.com/2010/12/07/a-guide-to-sharepoint-naming-conventions-aspx-2/