This documentation is archived and is not being maintained.

ISharePointProject.AutoRetract Property

Gets or sets whether the solution is retracted after debugging.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

bool AutoRetract { get; set; }

Property Value

Type: Boolean
True if the assembly is automatically retracted after debugging; false otherwise.

By default, the SharePoint solution is retracted from SharePoint after debugging completes. However, setting this property to false enables you to prevent the solution from being retracted after debugging.

This property is exposed as the Auto-retract after debugging option in the SharePoint tab of the SharePoint project property page.

Show: