Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 3.89 KB

building-and-debugging-sharepoint-solutions.md

File metadata and controls

49 lines (40 loc) · 3.89 KB
title description ms.date ms.topic dev_langs helpviewer_keywords author ms.author manager ms.subservice
Building and Debugging SharePoint Solutions
Learn to build and debug SharePoint solutions, and understand how it's different from building and debugging other types of projects in Visual Studio.
02/02/2017
overview
VB
CSharp
SharePoint development in Visual Studio, building and debugging
SharePoint development in Visual Studio, debugging
John-Hart
johnhart
mijacobs
sharepoint-development

Build and debug SharePoint solutions

In general, building and debugging SharePoint solutions is the same as building and debugging other types of projects in Visual Studio. The topics in this section explain the differences that do exist.

Project output for SharePoint solutions

Building SharePoint solutions creates assemblies and a solution package (.wsp) file. The following table shows the locations of these files during a build.

Build item Output folder
Assembly, program database (.pdb), and .wsp files. <ProjectName>\bin\debug or <ProjectName>\bin\release
SharePoint project item files. <ProjectName>\pkg\debug or <ProjectName>\pkg\release
Build intermediate files. <ProjectName>\obj\debug or <ProjectName>\obj\release
Package intermediate files. <ProjectName>\pkgobj\debug or <ProjectName>\pkgobj\release

Build SharePoint solutions

To build SharePoint solutions, the development computer must have the correct version of SharePoint server installed. Otherwise, building SharePoint solutions is the same as building other types of projects in Visual Studio. For more information, see How to: Build SharePoint solutions.

Debug and test SharePoint solutions

Before debugging, Visual Studio copies the .wsp package to the SharePoint server, activates the Site and Web-scoped Features, and in some cases, starts the project. In other cases, you may have to open the project manually. For more information, see Troubleshoot SharePoint solutions and Debug SharePoint solutions.

Debug and verify SharePoint solutions by using Azure DevOps Services features

Azure DevOps Services features such as unit testing and IntelliTrace enable you to more accurately pinpoint problems in your SharePoint solutions. Profiling enables you to locate and identify performance problem areas in your SharePoint solutions. For more information, see Verifying and Debugging SharePoint Code and Profiling the Performance of SharePoint Applications.

Security during the build process

To package or deploy SharePoint solutions, Visual Studio must have permission to copy files to the SharePoint server. You must run Visual Studio as an elevated process, and your user account must be a Site Collections Administrator on the SharePoint server. In addition, you must specify whether your project is a sandboxed solution or a farm solution. For more information, see Differences Between Sandboxed and Farm Solutions.

Using the Clean command

When a SharePoint solution is installed on a SharePoint server for debugging, the Clean command does not uninstall the solution. Instead, you must deactivate the Features through the SharePoint configuration.

See also