How to Create WSP in sharepoint

How To Create wsp for Deployment in Sharepoint:-

First why MS used wsp in Sharepoint :- Development for Microsoft Windows SharePoint Services 3.0 often involves deploying custom source files into the WSS \TEMPLATE directory. It is helpful to create a Microsoft Visual Studio project with a directory structure that parallels the \TEMPLATE directory so you can automate copying your source files into the location required for deployment and testing.

  1. 1. It is versionable
  2. 2. Draft feature we can use.
  3. 3. When a new Window Front end server will add in your sharepoint environment wsp automatically will be deployed on it. Actually it creates the timer jobs which will be executed.

How to create the Custome wsp Solution in Visula Studio

  1. Go to Visual Studio New Project
  2. Choose New Project of ClassLibrary Type and Specify the Name KrishanaDemoWsp. Save as your desired location.
  1. Next, create a \TEMPLATE directory inside the project.
  2. Right Click on your solution and add folder Give name 12
  3. within 12 folder create another folder and give name Templates
  4. Within Template folder create new folder and give name Features as per snap shot.

,Create a LAYOUTS directory within Template. Within the LAYOUTS directory, create either a company-specific or project-specific directory and create your custom application pages inside it. In our example I am taking a custom page and created a MyCompanyName folder in LAYOUTS directory.

Figure 1. Your Visual Studio project with a directory structure parallel to the WSS\TEMPLATE directory

create a batch file to automate copying these files into the 12 \TEMPLATE directory. If you are testing a Feature, the batch file must also make calls to the STSADM.EXE command-line utility to install (and possibly activate the feature as well). If your solution contains an assembly that must be installed in the global assembly cache (GAC), your batch must also run a command with the utility named GACUTIL.EXE. Here is an example of a batch file that involves all these aspects of deployment for testing purposes.

  1. If you have custom page, Custom Style sheet, java script or Image Files and want to deploy on SharePoint
  2. Create a LAYOUTS directory within Template. Within the LAYOUTS directory, create either a company-specific or project-specific directory and create your custom application pages inside it. In our examplee I am taking a custom page and created a MyCompanyName folder in LAYOUTS directory.
  3. Deployment Process: after you create the source file for component such as features and custom application page.
    1. Right click on your solution and add new itesm
    2. Give name Install.bat and press OK
    3. Write the following Command in your Batch File

About Krishana Kumar

Krishana Kumar is SharePoint Architect/Trainer having Architecture experience with high volumes at Enterprise level and global scale - creation of highly scalable solutions with global user base and geographically distributed architectural components. Good knowledge of SharePoint best practices and governance models. I hold Two Master degree in Computer Science with over 11 years of experience working on Microsoft Technologies specially SharePoint, Project, .NET and other Information Worker Technologies. Having good exposer in Client side scripting Angular.js, backbone and Node. I am currently responsible for SharePoint Infrastructure set up and leading teams in various medium and large scale projects, architecting, designing & installing SharePoint farms, developing custom components,, and providing advanced SharePoint administration and development training to teams and customers. I regularly speaks in various SharePoint User Groups and other Events. I have MCSA Windows Azure, MCSA Office 365, MCSE & MCSD SharePoint 2013, Microsoft Certified Developer (MCD) and holds MCPD, MCTIP and MCTS for SharePoint 2010, MCTS MOSS 2007 & WSS 3.0, MCPD, MCITP (EPM 2010 & 2007) and MCSD .NET.
This entry was posted in General Interest. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *