How to: Include Helper Files When you Debug a SharePoint Solution

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Applies to

The information in this topic applies only to the specified Visual Studio projects and versions of Microsoft Office.

Project type

  • SharePoint workflow

Microsoft Office version

  • SharePoint Server 2007

The SharePoint templates display only in projects that target .NET Framework 3.5 or earlier versions of the .NET Framework. For more information, see Features Available by Office Application and Project Type.

The Visual Studio workflow deployment process will copy any file that you want to the SharePoint server when you start the Visual Studio debugger. For example, you can deploy InfoPath (*.xsn) files that provide a UI for the workflow, or a file that contains localized resource strings.

To configure a SharePoint solution to deploy additional files

  1. Open or create a SharePoint 2007 Sequential Workflow or SharePoint 2007 State Machine Workflow project in Visual Studio. For more information, see How to: Create a SharePoint Workflow Project.

  2. In Solution Explorer, double-click feature.xml.

    The feature.xml file opens in the Code Editor.

  3. Add an element named ElementFile for each file that you want to deploy along with your project. Set the Location attribute of the element to the name of the file.

    Note

    If the file is located outside of the root directory of the SharePoint solution, ensure that the name includes a relative path.

    The following example specifies an InfoPath form named InitiationForm. This form is located in the root directory of the SharePoint solution so the name does not require a relative file path.

    <Feature  Id="c8ff5406-135a-4fba-8507-ff4d311434a7"
        Title="SharePointFormsWorkflow feature"
        Description="My SharePoint Workflow Feature"
        Version="12.0.0.0"
        Scope="Site"
        ReceiverAssembly="Microsoft.Office.Workflow.Feature,
        Version=12.0.0.0, Culture=neutral,
        PublicKeyToken=71e9bce111e9429c" ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"
        xmlns="https://schemas.microsoft.com/sharepoint/">
      <ElementManifests>
        <ElementManifest Location="workflow.xml" />
        <ElementFile Location="InitiationForm.xsn" />
      </ElementManifests>
      <Properties>
        <Property Key="GloballyAvailable" Value="true" />
        <Property Key="RegisterForms" Value="*.xsn" />
      </Properties>
    </Feature> 
    

See Also

Tasks

Walkthrough: Creating and Debugging a SharePoint Workflow Solution

How to: Create a SharePoint Workflow Project

How to: Modify the Debug Configuration Settings of a SharePoint Workflow Project

Concepts

Debugging SharePoint Workflow Solutions

Troubleshooting SharePoint Workflow Solutions

Other Resources

Office Development Samples and Walkthroughs

SharePoint Workflow Solutions