uzay95
uzay95

Reputation: 16622

To see all command line on output window while compiling

I want to see all commands while building/releasing on the output window. When I build my app I only see this:

------ Build started: Project: CemKutuphane, Configuration: Debug Any CPU ------
  CemKutuphane -> D:\Projects\Test\CemKutuphane\CemKutuphane\bin\Debug\CemKutuphane.dll
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

There is no csc.exe args in these lines. But visual studio ide is running behind of this. Is there any way to see the all commands?

Upvotes: 15

Views: 13046

Answers (1)

Justin
Justin

Reputation: 86729

dknaack's answer is correct so I'll repeat it in its entirity until he un-deletes it:

You can set the verbosity level on

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

I've tried this and found that setting the logging to "Normal" or above showed the csc.exe command line being executed, like this:

1>CoreCompile:
1>  C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:2008,1701,1702 ...

Note that you might need to Clean the project beforehand in order to see this - if the project is already up-to-date then MSBuild will skip several tasks.

Upvotes: 14

Related Questions