Add the ClientAPI Files as Reference in Visual Studio Projects

After creating a Visual Studio project, you can use the ClientAPI files by adding them as references.

To add ClientAPI files as reference in Visual Studio Projects:

  1. Load an existing solution or project or create a new one in Visual Studio.
  2. In the Solution Explorer window, right-click the project that will use the ClientAPI, and click Add Reference menu.
  3. In the Add Reference window, click the Browse tab.
  4. Navigate to the folder where the ClientAPI files reside, and click the Cobra.WebService.ClientAPI.dll file.
  5. In the Add Reference window, click OK.
    The Cobra.WebService.ClientAPI file displays in the References node of the project in the Solution Explorer window.
  6. In the Solution Explorer window, right-click the project, and select Add > Existing Item menu.
  7. In the Add Existing Item window, navigate to the folder where the ClientAPI files resides, and select the Cobra.WebService.ClientAPI.dll.config file.
  8. In the Add Existing Item window, click OK. The Cobra.WebService.ClientAPI.dll.config file displays under the project in the Solution Explorer window.
  9. Right-click the Cobra.WebService.ClientAPI.dll.config file under the project, and select Properties.
  10. In the Properties window, change the value of Copy to Output Directory to Copy if newer.
  11. Save the project by clicking File > Save All on the menu bar.
    You can now use the objects of ClientAPI in your project.