Reference the Veracode C# API Wrapper from Visual Studio

Veracode APIs

You can reference the C# API wrapper as a library from Visual Studio. Adding the wrapper as a library enables you to call API functions without having to set up web requests and look up the required URL or query string parameters.

To reference the Veracode C# API wrapper from your Visual Studio project:

  1. In Visual Studio, select View > Solution Explorer.
  2. Right-click the References folder and select Add Reference.


  3. In the Add Reference window, select the Browse tab.
  4. Locate and select the VeracodeC#API.exe file.


  5. Import the com.veracode.apiwrapper namespace.


  6. Optionally, complete the following steps to display the API wrapper documentation in the Visual Studio interface. The documentation XML file must be in the same directory as the VeracodeC#API.exe file.
    1. In Solution Explorer, expand the References folder.
    2. Double-click VeracodeC#API.exe.