msbuild.exe 的问题【JenKins】
有一个solution A,A里有5个projects【1,2,3,4,5】。我要用msbuild.exe来顺序build这个solution,遇到的问题是,build到project3的时候失败了,msbuild便不再继续build接下来的4,5两个projects,我想和vs一样,在vs里面会继续build接下来的projects,该怎么办呢?
ps:我是用Jenkins装了个msbuild插件来build solution的,遇到的问题如上所述,还请有这方面经验的朋友请帮帮忙,给点建议! --------------------编程问答-------------------- 给段代码,自己研究一下
'idepath c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe
Me.MSBuild(idepath, Application.StartupPath + "\医院管理软件升级.vbproj")
Public Function MSBuild(ByVal idefilepath As String, ByVal sourcepath As String) As Boolean
Dim args As String
Try
args = " " + sourcepath + " /build"
Dim MyProcess As New Process()
MyProcess.StartInfo.FileName = idefilepath
MyProcess.StartInfo.RedirectStandardOutput = True
MyProcess.StartInfo.UseShellExecute = False
MyProcess.StartInfo.CreateNoWindow = True
MyProcess.StartInfo.Verb = "Open"
MyProcess.StartInfo.Arguments = args
MyProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
MyProcess.Start()
Dim str As String = (MyProcess.StandardOutput.ReadToEnd)
Return True
Catch ex As Exception
MsgBox(ex.Message)
Return False
End Try
End Function
补充:.NET技术 , C#