Visual Studio 命令行构建参数

Visual Studio command line build arguments

当我从 Visual Stutio UI(调试配置)构建我的项目并设置选项时: Tools->Options->Project and Soulutions->Build and 运行-> MSBuild output verbosity to "Normal",在输出 window 中我得到构建命令:

C:\Program Files (x86)\MSBuild.0\bin\Vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Drawing,System.Diagnostics,System.Windows.Forms,System.Linq,System.Xml.Linq /optioncompare:Binary /optionexplicit+ /optionstrict:custom /nowarn:41999,42016,42017,42018,42019,42020,42021,42022,42030,42032,42036,42104,42108,42109,42353,42354,42355 /optioninfer+ /nostdlib /platform:x86 /removeintchecks- /rootnamespace:INFOPRIM /sdkpath:C:\Windows\Microsoft.NET\Framework\v2.0.50727 /highentropyva- /doc:obj\Debug\INFOPRIM.xml /define:"CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\"WindowsForms\",PLATFORM=\"AnyCPU\"" /reference:C:\Windows\assembly\GAC\adodb.0.3300.0__b03f5f7f11d50a3a\adodb.dll,"C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll","C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportAppServer.ClientDoc.dll","C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportAppServer.Controllers.dll",

等还有更多。它是项目中的每个 *.vb 文件和资源。

我想知道它是否等同于:

devenv.exe MyProject.sln /build Debug /project "MyProject.vbproj" /projectconfig Debug

因为我需要从命令行构建。

谢谢。

如果可能,对于自动构建,您应该使用 MSBuild 而不是 Visual Studio。

msbuild MyProject.vbproj /t:Build /p:Configuration=Debug /verbosity:normal

(也可以是安静的、最小的和诊断性的)