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:
-
Load an existing solution or project or create a new one in Visual Studio.
-
In the Solution Explorer window, right-click the project that will use the ClientAPI, and click
Add Reference menu.
-
In the Add Reference window, click the Browse tab.
-
Navigate to the folder where the ClientAPI files reside, and click the
Cobra.WebService.ClientAPI.dll file.
-
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.
-
In the Solution Explorer window, right-click the project, and select
menu.
-
In the Add Existing Item window, navigate to the folder where the ClientAPI files resides, and select the
Cobra.WebService.ClientAPI.dll.config file.
-
In the Add Existing Item window, click
OK. The
Cobra.WebService.ClientAPI.dll.config file displays under the project in the Solution Explorer window.
-
Right-click the
Cobra.WebService.ClientAPI.dll.config file under the project, and select
Properties.
-
In the Properties window, change the value of
Copy to Output Directory to
Copy if newer.
-
Save the project by clicking
on the menu bar.
You can now use the objects of ClientAPI in your project.