Prepare the Visual Studio project

Create an empty SharePoint 2013 project and add the appropriate dependencies for the project. Connect to your SharePoint 2013 instance. When you have created your project, you can deploy directly from Visual Studio to SharePoint. Or you can export a package, and then install the feature from SharePoint.

Considerations

To avoid surprises when deploying a custom control, take the following points into consideration:

Prerequisites

To use the example, ensure that you have the following prerequisites in place:

Create an Empty SharePoint 2013 Solution in Visual Studio

In your Visual Studio development environment on your SharePoint 2013 server, create a new project and make sure that it points to SharePoint server to which you would like to deploy your solution.

To create an empty SharePoint 2013 Solution in Visual Studio

  1. Click File, click New, and select Project in Microsoft Visual Studio.
  2. Expand the Installed group, Templates, and then Visual C#. Click Office/SharePoint, and select SharePoint Solutions. Click SharePoint 2013 – Empty Project.
  3. Name the Project MyCustomSliderControland the click OK. You may want to add the solution to source control.
  4. Type the domain of the SharePoint site you use for debugging. Click Validate to verify the connection.
  5. Select Deploy as a farm solution and click Finish.

Add Library Dependencies

You will need to retrieve the following Dynamic-link library (DLLs) from your SharePoint Server after you have installed Nintex Workflow and Nintex Forms:

You can find the Nintex assemblies in the General Assembly Cache (GAC).

Note: Access to members and types through the Nintex.Forms.Sdk namespace found in the Nintex.Forms.Sdk assembly. Direct access to Nintex.Forms members and types is only supported for infrastructure use.

To add the dependent class libraries for the solution

  1. Click open and select Project/Solution in Microsoft Visual Studio. Navigate to your solution file and click Open.
  2. Click View and select Solution Explorer.
  3. Expand the custom control solution, right-click the References node, and then select Add References.
  4. Click, Assemblies, and click Framework. Select System.Runtime.Serialization, System.Web, Nintex.Forms, Nintex.Forms.sdk, and click OK.

Related information

Create a custom form control sample