Book Image

SharePoint 2013 WCM Advanced Cookbook

By : JOHN CHAPMAN
Book Image

SharePoint 2013 WCM Advanced Cookbook

By: JOHN CHAPMAN

Overview of this book

Table of Contents (19 chapters)
SharePoint 2013 WCM Advanced Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Packaging and deploying the SharePoint solution


Visual Studio provides a simple one-click method to package a SharePoint project as a SharePoint solution. Once packaged, solutions can be deployed from the Visual Studio interface. In addition, packaged solutions can be deployed with PowerShell and .NET code.

How to do it...

Follow these steps to package and deploy the solution:

  1. From the Solution Explorer pane, right-click on the project name.

  2. Select Publish as shown in the following screenshot:

  3. Provide a location to output the SharePoint solution file.

  4. Click on Publish.

  5. From the BUILD menu, select Deploy Solution as shown in the following screenshot:

How it works...

When Visual Studio publishes (or packages) a SharePoint project, it creates a SharePoint solution file (wsp) that contains a manifest, the assemblies, and any other files that are included. The SharePoint solution is then outputted to the folder specified.

In addition, Visual Studio has the ability to deploy the solution to the local SharePoint...