Configuring a Visual Studio Project

After you create a new project, you must reference a required DLL and, if necessary, an optional DLL.

Starting Microsoft Visual Studio

Procedure

  1. On your system, start the Visual Studio IDE.
  2. Close the Start Page pane.
  3. If Solution Explorer is not open, click View > Solution Explorer in the Visual Studio menu bar.

Creating a Project

Procedure

  1. In the Visual Studio menu bar, click File > New > Project.
  2. In the New Project dialog box, in the Project types section, expand Visual C#.
  3. Select Windows.
  4. In the Templates section, select Console Application.
  5. In the bottom portion of the New Project dialog box, enter a project name in the Name field.
    For example, com.ibm.filenet.net.sample.
  6. In the Location field, enter the path for the project.
    For example, C:\Visual Studio Projects.
  7. In the Solution Name field, enter the name of the solution.
    For example, P8ApiSample.
  8. Click OK.

Referencing DLLs

Procedure

  1. In the Solution Explorer pane, right-click your project, then click Add Reference.
  2. In the Add Reference window, click the Browse tab.
  3. In the drop-down list, find the folder for FileNet.Api.dll.

    For the default location of FileNet.Api.dll, see Prerequisites.

  4. Select the DLL file.
  5. Click OK.
  6. If you need to use an unsecured HTTP connection to Content Platform Engine, you must also reference Microsoft.Web.Services3.dll.
  7. In the Visual Studio menu bar, click File > Save All.