Use Case - Analyze a Microsoft VS Project without using the VS Plug-in

It is intended that users of Microsoft’s VS (Visual Studio) use the plug-in module to analyze their code. However, should you choose not to use the plug-in, the Helix QAC GUI can still be used to analyze your code.

In this example, there is a directory layout and source code files identical to the previous example, but this code has been built into a Microsoft Visual Studio project, named simpleWinProject:

The user currently builds their project using the Microsoft Visual Studio GUI, but wishes to have their code analyzed, without using the available Microsoft Visual Studio plug-in. The steps are almost identical to the previous example.

After starting the Helix QAC GUI, Click to create a new Helix QAC Project,

You are now presented with a dialog box, in which you specify the Project Name, which is simply the name of the directory containing the code project, in this example:

simpleWinProject

You also need to select the appropriate compiler, which in this case is the Microsoft Visual Studio 2010 compiler. After clicking Create, you are presented with the Project Properties. In this straightforward case, the default values are appropriate, so you simply need to close the window:

The Helix QAC software must now observe a build to infer the correct source files for analysis, as in previous examples. To do so, it must be given a command to run on the command line that will drive the build. In Microsoft’s Visual Studio, the build process can be driven using the devenv.exe program. Select Synchronize in the Project Menu.

You are now presented with the opportunity to enter the build command, which in this case is the lengthy single line:

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" /Build Release "C:\Users\User\ My Documents\Visual Studio 2010\Projects\simpleWinProject\ simpleWinProject.sln"
Check the Run Analysis at Same Time box at the bottom of the dialog if you wish the project files to be analyzed at the same time as they are being built.

When you select "Synchronize", the build is triggered and observed, with detected files being displayed in the progress window.

The files are now available for examination in the Files panel on the left.