This article will show how to create and deploy a Web Solution Package (WSP) in SharePoint 2013 and SharePoint 2010.
Create a new SharePoint 2013 empty project in Microsoft Visual Studio 2013.Create a new project named "Registration" and click OK.Enter the valid SharePoint site URL and select Deploy as a Farm solution, then click Finish.Now right-click on the project and click Add new item.Create a new Visual Web Part named "Demo".Now I will add a simple Hello World Web Part on the button click action displayed using label.Double-click on the button to add some code to display the message.Now Save the project and right-click on the project and select Publish.Now the Registration.wsp has been published to the file system.Now open the SharePoint Management Shell using “Run as administrator”.Command: stsadm –o addsolution filename Registration.wsp.Now go to SharePoint 2013 Central Administration to deploy the solution.Under System settings click Manage Farm solutions.Click on the solution “registration.wsp” and click Deploy solution, then click OK.Now the solution has been deployed successfully.Now go to the site.Click on edit page to add a Web Part.Now click on the button and display the message.One more way to deploy the solution is to directly deploy it from Microsoft Visual Studio.This document shows how to deploy the .wsp file in SharePoint 2010 and 2013.
Configure MinRole Search and Cloud Hybrid Features in SharePoint Server 2016 and Office 365