Skip to content

Instantly share code, notes, and snippets.

@nani1337
Created April 12, 2019 09:10
Show Gist options
  • Save nani1337/2d9c8c2c3054c6e67c808006ba171856 to your computer and use it in GitHub Desktop.
Save nani1337/2d9c8c2c3054c6e67c808006ba171856 to your computer and use it in GitHub Desktop.
1. Open the Visual Studio Command Prompt.
(The Visual Studio Command Prompt loads the necessary environment variables required for the proper
functioning of the Visual Studio command line tools.)
You can open the VS command prompt by navigating to Start --> All Programs --> Microsoft Visual Studio 2010 --> Visual Studio Tools
--> Visual Studio 2xxx Developer Command Prompt.
2. Please make sure you are able to build your solution successfully by running the following command:
devenv Sample.sln /Rebuild Debug
(Sample.sln is for demo use only, your project name will be different)
If you are able to build the solution successfully, proceed to the next step. If not, fix any build errors first.
3. Now please run the following Fortify SCA commands:
[Step 1: Clean]
sourceanalyzer -b Solution1 -clean
[Step 2: Translation/Build]
sourceanalyzer -b Solution1 -Xmx1280M -Xss8M -debug -logfile trans.log devenv Sample.sln /Rebuild Debug
[Step 3: Analysis]
sourceanalyzer -b Solution1 -Xmx1280M -Xss8M -debug -logfile scan.log -scan -f Results.fpr
(The build ID, i.e., the argument to the "-b" option, can be anything, but it must be the same for all three commands.)
If you see the ASP.NET Precompilation error while running Step 2 for the Translation/Build step,
then examine the trans.log file produced by specifying the –logfile option. More details about
the error should be available in the log file, to help you debug what is happening.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment