Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show full command line activity while building\compiling in Visual Studio? [duplicate]

I need to get a hold of every flag, every switch used in the build process by the Visual Studio binaries. I tried to obtain a verbose output by using vcbuild, but I wasn't able.

What do I have to do to see everything performed by Visual Studio for me? It's not necessary to obtain the output in the build window. Anywhere would be fine.

like image 610
Geo Avatar asked Jul 31 '09 10:07

Geo


People also ask

How do I get the build command in Visual Studio?

To compile source files from within the Visual Studio IDE, choose the Build command from the Build menu.

How do I get MSBuild command from Visual Studio?

If you have Visual Studio, then you already have MSBuild installed. With Visual Studio 2022, it's installed under the Visual Studio installation folder. For a typical default installation on Windows 10, MSBuild.exe is under the installation folder in MSBuild\Current\Bin.


4 Answers

Menu ToolsOptionsProjects and SolutionsBuild and RunMSBuild project build output verbosity: Diagnostic

like image 71
Sam Harwell Avatar answered Oct 20 '22 20:10

Sam Harwell


  1. Open the project properties dialog, then choose

    Configuration PropertiesC/C++General

  2. Change the setting for Suppress Startup Banner to No

  3. The cl command line(s) will be shown in the output window.

like image 22
Tim Dowty Avatar answered Oct 20 '22 20:10

Tim Dowty


Visual Studio 2008:

Go to menu ToolsOptions then Project and SolutionsBuild and Run section. You have a combo box for verbosity.

C++ compiler option (project properties):

  • Preprocessor - Generate Preprocessed File for seeing the translation unit as generated by preprocessor
  • Advanced - Show includes - display included file names at compiler output
like image 45
Cătălin Pitiș Avatar answered Oct 20 '22 20:10

Cătălin Pitiș


If you're running MSBuild, you can set the /v:diag flag.

like image 42
Joe Avatar answered Oct 20 '22 20:10

Joe