有没有办法获取 Visual Studio 使用的构建命令行? [英] Is there a way to get the build command line used by Visual Studio?

查看:34
本文介绍了有没有办法获取 Visual Studio 使用的构建命令行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从命令行进行构建,但我想从 Visual Studio (2012) 获取确切的命令行语法,这样我就不必手动找出所有标志、导入, 和其他参数.

I want to do a build from the command line, but I'd like to get the exact command line syntax from Visual Studio (2012), so that I don't have to manually figure out all of the flags, imports, and other parameters.

有没有办法让 Visual Studio 显示这些信息?

Is there a way to get Visual Studio to display this information?

推荐答案

在 Visual Studio 中构建项目或解决方案时,用于运行编译器的整个命令行(csc.exe,包括开关和参数)显示在输出窗口.如果您在那里没有看到它,请通过以下方式检查 Verbosity 级别:

When you build a project or solution in Visual Studio, the entire command line used to run the compiler (csc.exe, including switches and parameters) is displayed in the Output window. If you don't see it there, check the Verbosity level by going to:

选项 > 项目和解决方案 > 构建和运行 > MSBuild 项目构建输出详细程度

(您可能需要选择显示所有设置")

(You may need to choose "Show all settings")

它必须设置为正常"或更高.查看此问题和答案以了解更多详情:

It has to be set to "Normal" or higher. Check this question and answer for more details:

要在输出窗口中查看所有命令行,同时编译

这篇关于有没有办法获取 Visual Studio 使用的构建命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆