views:

1966

answers:

4

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.

+1  A: 

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

Joe
How would I run MSBuild?
Geo
start the visual studio command prompt (it's in the Start Menu), then execute the visual studio project with: MSBuild {ProjectName}
Joe
e.g. MsBuild myProject.csproj
Joe
I see MSBuild calls `vcbuild`, but vcbuild doesn't show the flags/switches it's using.
Geo
+4  A: 

Tools > Options > Projects and Solutions > Build and Run > MSBuild project build output verbosity: Diagnostic

280Z28
This doesn't change anything. I'm still getting the same output in the output window.
Geo
+12  A: 

Visual Studio 2008:

Go to Tools/Options then Project and Solutions/Build 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
Cătălin Pitiș
+1  A: 

In Visual studio go to your project and right click on it and select properties. Both in C/C++ options and in Linker there is command line option. There you have all the options and you can your custom ones. Add /VERBOSE in any of them and when you compile and link Visual Studio will show a lot more of information.

fco.javier.sanz
It does show more information, but it doesn't show the tools being called to compile.
Geo
Visual Studio has a make tool called nmake. You can export your project to those makefiles and and build it from a dos console http://msdn.microsoft.com/en-us/library/txcwa2xx(VS.80).aspx. Last time I did something similar (but I used CMake to generate the nmake makefiles) all the commands were printed out into the console display.
fco.javier.sanz