简体   繁体   English

在编译时查看输出窗口上的所有命令行

[英]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. 这些行中没有csc.exe args。 But visual studio ide is running behind of this. 但是visual studio ide正在为此而努力。 Is there any way to see the all commands? 有没有办法看到所有命令?

dknaack's answer is correct so I'll repeat it in its entirity until he un-deletes it: dknaack的答案是正确的,所以我会重复它,直到他删除它为止:

You can set the verbosity level on 您可以设置详细级别

Options > Projects and Solutions > Build and Run > MSBuild project build output verbosity 选项>项目和解决方案>构建和运行> MSBuild项目构建输出详细程度

I've tried this and found that setting the logging to "Normal" or above showed the csc.exe command line being executed, like this: 我试过这个并发现将日志记录设置为“Normal”或更高版本会显示正在执行的csc.exe命令行,如下所示:

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. 请注意,您可能需要事先清理项目才能看到这一点 - 如果项目已经是最新的,那么MSBuild将跳过几个任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM