120 likes | 262 Views
http://www.sharepointspecialists.com/. RJB Technical Consulting. www.rjbtech.com. Max.Ryvkov@rjbtech.com. Developing and Deploying Custom Solutions in SharePoint 2007. What will be covered. Creating custom solutions/features Using STSADM commands Activating features
E N D
http://www.sharepointspecialists.com/ RJB Technical Consulting www.rjbtech.com Max.Ryvkov@rjbtech.com Developing and DeployingCustom Solutions in SharePoint 2007
What will be covered • Creating custom solutions/features • Using STSADM commands • Activating features • Revealing 12 Hive structure • Using Visual Studio & WSP Builder • Demo custom solutions in action
http://www.sharepointspecialists.com/ RJB Technical Consulting www.rjbtech.com Max.Ryvkov@rjbtech.com What are SharePoint Custom Solutions?
A solution is a deployable, reusable package that can contain a set of Features, site definitions, and assemblies that apply to sites, and that you can enable or disable individually. You can use the solution file to deploy the contents of a Web Part package, including assemblies, class resources, .dwp files, and other package components.
Custom Solutions Can/Should? Contain: • Branding • Customization • Content + Content Types • Pages • Web Parts • Workflows • Modules like User Controls • Features • Web Services • Event Handlers Live Together
http://www.sharepointspecialists.com/ RJB Technical Consulting www.rjbtech.com Max.Ryvkov@rjbtech.com How To Create Custom Solutions?
Creating custom solutions • Create a single re-distributable package (WSP – SharePoint Solution Pack) • Visual Studio 2005(with Extensions Add-On) • Visual Studio 2008 • WSP Builder • Text Editor (Manual creation of Data definition files) • Place all the customizations in your project, including Features, custom assemblies, web services, event handlers, custom pages, branding, etc in your project solution. • WSP – cab based file with .wsp extension • Recommended tools: • WSP Builder • Text Editor(s) • WSP Manager • WSS / MOSS Build Tasks 1.0.0.0
http://www.sharepointspecialists.com/ RJB Technical Consulting www.rjbtech.com Max.Ryvkov@rjbtech.com How To Deploy Custom Solutions?
Deploying WSP Solution Cab to the WSS Solution Store • Use STSADM command like so: • Stsadm.exe –o addsolution –filename “c:\wsp\UserGroup.wsp” • 2. Browse to SharePoint 3.0 Central Administration and deploy the solution under Solution Management link • Or • Use a STSADM command line: • Stsadm.exe –o deploysolution –name UserGroup.wsp • Switches: • -allowgacdeployment • -immediate • -force • -allcontenturls • 3. Use STSADM command to execuite admin jobs: • Stsadm.exe –o execadmsvcjobs
What’s next? – Features !!! • Solutions and features are interrelated • Solutions are deployed via features • Features are delivered to SharePoint servers via solutions • Activating features populates the content databases with data • Activate your features through: • stsadm command • Site/SiteCollection/WebApplication/Farm features UI
Take it away - to a demo! • Connecting the dots…
Sources & References: • Creating a SharePoint Solution Package (.wsp) in 5 steps - EvgenyTugarev's blog • http://geekswithblogs.net/evgenyblog/archive/2008/01/27/118966.aspx • SharePoint Solution Overview (MSDN) • http://msdn.microsoft.com/en-us/library/aa543214.aspx • SharePoint Adventure By YaroslavPentsarskiy • http://www.sharemuch.com/2009/08/08/sharepoint-custom-solution-development/ • Mind Sharp: Adding RS.cab to SharePoint • http://www.mindsharpblogs.com/kathy/archive/2008/02/01/4247.aspx