How can the Visual Studio 2008 Build Command Line be seen?

雨燕双飞 提交于 2019-12-22 08:39:53

问题


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?

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

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

回答1:


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

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


来源:https://stackoverflow.com/questions/3779773/how-can-the-visual-studio-2008-build-command-line-be-seen

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