To see all command line on output window while compiling

对着背影说爱祢 提交于 2019-12-04 17:18:57

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/9016111/to-see-all-command-line-on-output-window-while-compiling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!