Manually Precompile Web Projects Using Visual Studio (Legacy)

IDEs

Publication
IDEs
Edition date
2022-11-29
Last publication
2022-11-29T16:31:45.191867

You can choose to manually precompile your builds when they complete if you do not want them to precompile automatically, which is the default.

Before You Begin

  • You meet the prerequisites for Veracode Static for Visual Studio.
  • To precompile web projects that target a 64-bit architecture, you must use the 64-bit version of Windows.
  • 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.

Overview

Precompilation translates ASP.NET views/pages and controls into DLL files with debug information for Veracode to analyze. It stores the precompilation output in $(SolutionDir)\PrecompiledWeb. Defaults to Automatic Precompilation.

Steps

  1. In Visual Studio, select Extensions > 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.

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