Build setup for .net Projects
![]()
Hi,
I am new to .Net.
I am using RTC 4.0.1, and need to setup the build for the .net project using the Jazz build engine( Jazz build for Microsoft Visual Studio Solution - Jazz build engine).
I have followed the steps as described in the link below.
After configuring and requesting for the build, I am getting the following error.
2013-03-11 12:06:52 [Jazz build engine] running on host: localhost
2013-03-11 12:06:52 [Jazz build engine] Should build occur?
2013-03-11 12:06:52 [Jazz build engine] Yes: Always build a user initiated request.
2013-03-11 12:06:52 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm"
2013-03-11 12:06:52 [Jazz build engine] Accepting changes into workspace "ADaaS .Net" ...
2013-03-11 12:06:53 [Jazz build engine] Fetching files to fetch destination "C:\Program Files\IBM\RTC-BuildSystem\jazz\buildsystem\buildengine\eclipse\${loadDirectory}" ...
2013-03-11 12:06:54 [Jazz build engine] Invoking build participant "com.ibm.team.build.msbuild"
java.io.IOException: Cannot run program "msbuild.exe" (in directory "C:\Program Files\IBM\RTC-BuildSystem\jazz\buildsystem\buildengine\eclipse"): CreateProcess error=2, The system cannot find the file specified.
at java.lang.ProcessBuilder.start(ProcessBuilder.java:471)
at com.ibm.team.build.internal.engine.CommandLineBuildParticipant.execute(CommandLineBuildParticipant.java:312)
at com.ibm.team.build.internal.engine.MicrosoftBuildParticipant.build(MicrosoftBuildParticipant.java:407)
at com.ibm.team.build.internal.engine.BuildLoop.invokeBuildParticipants(BuildLoop.java:909)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:691)
at java.lang.Thread.run(Thread.java:738)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified.
at java.lang.ProcessImpl.<init>(ProcessImpl.java:92)
at java.lang.ProcessImpl.start(ProcessImpl.java:41)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:464)
... 5 more
Please let me know if I have missed anything.
Thanks,
Gyaneswari
|
Accepted answer
3 other answers
![]() I am able to proceed furthur, but now getting a different error. 2013-03-12 15:55:14 [Jazz build engine] 2013-03-12 15:55:14 [Jazz build engine] Substituted the following configuration element property variables: 2013-03-12 15:55:14 [Jazz build engine] com.ibm.team.build.msbuild : com.ibm.team.build.msbuild.buildItem = LoginApplication\LoginApplication.sln-E_o_T-ebug-E_o_T-Build-E_o_T--e_M_p_T_y_T_o_K_e_N--E_o_T-LoginApplication.log-E_o_T-${team.scm.fetchDestination}-E_o_B_i-WindowsApplication1\WindowsApplication1.sln-E_o_T-release-E_o_T-Build-E_o_T--e_M_p_T_y_T_o_K_e_N--E_o_T-WindowsApplication1.log-E_o_T-${team.scm.fetchDestination}-E_o_B_i- --> com.ibm.team.build.msbuild.buildItem = LoginApplication\LoginApplication.sln-E_o_T-ebug-E_o_T-Build-E_o_T--e_M_p_T_y_T_o_K_e_N--E_o_T-LoginApplication.log-E_o_T-fetched-E_o_B_i-WindowsApplication1\WindowsApplication1.sln-E_o_T-release-E_o_T-Build-E_o_T--e_M_p_T_y_T_o_K_e_N--E_o_T-WindowsApplication1.log-E_o_T-fetched-E_o_B_i- 2013-03-12 15:55:14 [Jazz build engine] 2013-03-12 15:55:14 [Jazz build engine] running on host: WindowsServ-0 2013-03-12 15:55:14 [Jazz build engine] Should build occur? 2013-03-12 15:55:14 [Jazz build engine] Yes: Always build a user initiated request. 2013-03-12 15:55:14 [Jazz build engine] Invoking pre-build participant "com.ibm.team.build.jazzscm" 2013-03-12 15:55:14 [Jazz build engine] Accepting changes into workspace "ADaaS.NetProject (Change Management) StreamBuild Workspace" ... 2013-03-12 15:55:14 [Jazz build engine] Deleting fetch destination "C:\Program Files\IBM\RTC-BuildSystem\jazz\buildsystem\buildengine\eclipse\fetched" before fetching ... 2013-03-12 15:55:14 [Jazz build engine] Fetching files to fetch destination "C:\Program Files\IBM\RTC-BuildSystem\jazz\buildsystem\buildengine\eclipse\fetched" ... 2013-03-12 15:55:16 [Jazz build engine] Invoking build participant "com.ibm.team.build.msbuild" Microsoft (R) Build Engine version 4.0.30319.17929 [Microsoft .NET Framework, version 4.0.30319.17929] Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1021: Cannot create an instance of the logger. Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Switch: C:\Program Files\IBM\RTC-BuildSystem\jazz\buildsystem\buildengine\eclipse\configuration\org.eclipse.osgi\bundles\16\1\.cp\os\win32\x86\JbeMsBuildLogger.dll;C:\Users\Pancha\AppData\Local\Temp\3\JbeMSBuildLogs_1363083916653_1 Build failed for - "LoginApplication\LoginApplication.sln", build exited with value "1". Microsoft (R) Build Engine version 4.0.30319.17929 [Microsoft .NET Framework, version 4.0.30319.17929] Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1021: Cannot create an instance of the logger. Could not load file or assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Switch: C:\Program Files\IBM\RTC-BuildSystem\jazz\buildsystem\buildengine\eclipse\configuration\org.eclipse.osgi\bundles\16\1\.cp\os\win32\x86\JbeMsBuildLogger.dll;C:\Users\Pancha\AppData\Local\Temp\3\JbeMSBuildLogs_1363083916654_2 Build failed for - "WindowsApplication1\WindowsApplication1.sln", build exited with value "1". Please help
|
![]() Looks like the JbeMsBuildLogger.dll which is used to create the compilation logs when the MSBuild is run has a dependency on the dll 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0'. The depenecy should not be on a specific version of the .NET library. I have filed a defect 255450: MSBuild Template: MSBuild logger has a hardcoded dependency with dll 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0 to investigate this issue. Meanwhile can you please install .NET 3.5 SP1 framework in the build machine and check if this error goes away. Thanks, Kishore |
![]()
Hi Kishore
I got almost the same error with RTC 4.0.1, VS 2010:
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
MSBUILD : error MSB1021: Cannot create an instance of the logger. Could not load file or assembly 'C:\\IBM\\TeamConcertBuild\\buildsystem\\buildengine\\eclipse\\configuration\\org.eclipse.osgi\\bundles\\16\\1\\.cp\\os\\win32\\JbeMsBuildLogger.dll' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Switch: C:\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse\configuration\org.eclipse.osgi\bundles\16\1\.cp\os\win32\JbeMsBuildLogger.dll;C:\Users\ADMINI~1\AppData\Local\Temp\JbeMSBuildLogs_1364989037453_1
Build failed
I didn't get the 3.5.0.0 error but if I look in the filesystem JbeMsBuildLogger.dll is in
C:\IBM\TeamConcertBuild\buildsystem\buildengine\eclipse\configuration\org.eclipse.osgi\bundles\16\1\.cp\os\win32\x86
Freddy
|