当我从Visual (Debug Configuration)构建我的项目并将选项: Tools->Options->Project和Soulutions->Build and run-> MSBuild输出详细化为"Normal“时,在output窗口中,我得到了build命令:
程序文件(x86)\MSBuild\12.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,/sdkpath:C:\Windows\Microsoft.NET\Framework\v2.0.50727 /highentropyva- /doc:obj\Debug\INFOPRIM.xml /define:"CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\“WindowsForms”,“AnyCPU\”“/reference:C:\Windows\assembly\GAC\adodb\7.0.3300.0__b03f5f7f11d50a3a\adodb.dll,"C:\Program (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework4.0\公用\SAP BusinessObjects企业XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll",“C:\程序文件(X86)\\ .NET Framework4.0\ 4.0\win32_x86\dotnet\CrystalDecisions.ReportAppServer.Controllers.dll",\SAP BusinessObjects企业XI .NET报表"C:\Program (X86)\\.NET Framework4.0\SAP BusinessObjects企业XI报表
等等还有更多。它是项目中的每个*.vb文件和资源。
我想知道它是否相当于:
devenv.exe MyProject.sln /build Debug /project "MyProject.vbproj“/projectconfig Debug
因为我需要从命令行构建。
谢谢。
发布于 2015-03-25 07:55:20
如果可能,对于自动生成,您应该使用MSBuild而不是Visual。
msbuild MyProject.vbproj /t:Build /p:Configuration=Debug /verbosity:normal(也可以是安静的、最小的和诊断性的)
https://stackoverflow.com/questions/29250045
复制相似问题