如何显示Visual Studio 2008生成命令行? [英] How can the Visual Studio 2008 Build Command Line be seen?

查看:120
本文介绍了如何显示Visual Studio 2008生成命令行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Visual Studio中时,我按F5键进行构建.
有没有办法查看正在执行的MSBUILD命令行?

When I am in Visual Studio I hit the F5 to do a build.
Is there a way to see the MSBUILD command line being executed?

在Visual Build Pro内部,构建失败,但是从Visual Studio 2008运行(按F5)时,构建成功.

Inside of Visual Build Pro the build fails but when run from Visual Studio 2008 (hitting the F5) it succeeds.

以下是Visual Build Pro内部使用的命令行:

Here is the command line used inside of Visual Build Pro:


C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe C:\Code\EduBenesysNET\EduBenesysNET\EduBenesysNET.vbproj /t:publish /p:Configuration=Release /p:Platform=AnyCPU /v:detailed /p:PublishDir="\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\"  /p:InstallUrl="https://www.benesys.net/benesys.net/TotalEducationTest/"  /p:ApplicationVersion=1.0.1.198  /p:ProductName="Total Education TEST"   /p:PublisherName="BeneSys, Inc."  /p:UpdateRequired="True"  /p:MinimumRequiredVersion=1.0.1.198

推荐答案

我认为您看不到Visual Studio中正在执行的命令行,但是您可以将MSBuild的详细程度设置为 diagnostic >在Visual Studio中,然后将输出与Visual Build Pro产生的输出进行比较.

I don't think you can see the command line being executed within Visual Studio, but you can set the verbosity of MSBuild to diagnostic within Visual Studio and then compare the output with output produce by Visual Build Pro.

Tools > Options > Project and Solution > Generate and execute > "MSBuild verbosity" to Diagnostic

要在命令行中设置MSBuild的详细信息,请添加/v:diag

To set the verbosity of MSBuild in command line add /v:diag

C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe /v:diag C:\Code\EduBenesysNET\EduBenesysNET\EduBenesysNET.vbproj /t:publish /p:Configuration=Release /p:Platform=AnyCPU /v:detailed /p:PublishDir="\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\"  /p:InstallUrl="https://www.benesys.net/benesys.net/TotalEducationTest/"  /p:ApplicationVersion=1.0.1.198  /p:ProductName="Total Education TEST"   /p:PublisherName="BeneSys, Inc."  /p:UpdateRequired="True"  /p:MinimumRequiredVersion=1.0.1.198

这篇关于如何显示Visual Studio 2008生成命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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