Creating a Veracode Build Using Visual Studio

IDEs

You use Veracode Static for Visual Studio to create a build of your application and upload the application to Veracode for analysis.

When you create a new build of your application, the Veracode extension creates the build with the necessary compilation and linker settings as outlined in Veracode Packaging Requirements. To create the new Veracode build, open your project solution in Visual Studio and, then, select Veracode Static > Build with Veracode Settings. This action temporarily changes the compilation and linker settings of the source build configuration in preparation for uploading to Veracode. By default, the extension builds your code using the active build configuration.

After the build completes, by default, it automatically precompiles any web projects that are part of the solution. Precompilation translates ASP.NET views/pages and controls into DLL files, with debug information for Veracode to analyze, and stores the precompilation output in $(SolutionDir)\PrecompiledWeb.

To precompile your web projects manually:

  1. In Visual Studio, select Veracode Static > Options > Precompilation.
  2. Clear the Publish on build with Veracode settings checkbox to disable automatic precompilation.
  3. Select Veracode Static > Publish/Precompile Web Projects to start precompiling your web project.
Before you can successfully upload your binaries, you must correct all compilation and precompilation errors. Veracode cannot upload and scan an application that does not build successfully.
Note: To use Veracode Static for Visual Studio to precompile web projects that target a 64-bit architecture, you must use the 64-bit version of Windows.


To issue a clean solution command that deletes all artifacts and creates a new build, select Veracode Static > Rebuild With Veracode Settings.