My workspace: D:\Program Files\buildagent_v2\workspace\TMS\One Dealer Daily\1DD_Solution
Actual Project file location: D:\Program Files\buildagent_v2\workspace\TMS\One Dealer Daily\1DD_Solution\One_DD_Comp\One_DD_Component\01Dev\Build.
Therefore, I'd provided the project file location as One_DD_Comp/One_DD_Component/01Dev/Build/TestBuild.prj. I'd left the "Working Directory" field to be empty, since MSBuild.exe location is already available in plugin management.
Error scenario:
When the build is executed, QB reports that MSBuild cannot find the project file.
Error Log:
14:05:58,080 [master>Build@VCTMSDASV28:10202] INFO - Running step...
14:05:58,440 [master>Build@VCTMSDASV28:10202] DEBUG - Executing command: "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /nologo /t:Build /noconsolelogger "/l:QBLogger,D:\Program Files\buildagent_v2\temp\PMEase.QuickBuild.MSBuild.Logger.dll;v=detailed" One_DD_Comp/One_DD_Component/01Dev/Build/TestBuild.prj
14:05:58,440 [master>Build@VCTMSDASV28:10202] DEBUG - Command working directory: D:\Program Files\buildagent_v2\workspace\TMS\One Dealer Daily\1DD_Solution\One_DD_Comp\One_DD_Component\01Dev\Build
14:05:58,612 [master>Build@VCTMSDASV28:10202] ERROR - MSBUILD : error MSB1009: Project file does not exist.
14:05:58,612 [master>Build@VCTMSDASV28:10202] INFO - Switch: One_DD_Comp/One_DD_Component/01Dev/Build/TestBuild.prj
14:05:58,643 [master>Build@VCTMSDASV28:10202] INFO - Executing post-execute action...
14:05:58,643 [master>Build@VCTMSDASV28:10202] ERROR - Step 'master>Build' is failed.
com.pmease.quickbuild.QuickbuildException: Executing below MSBuild command failed (1 errors, 0 warnings):
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /nologo /t:Build /noconsolelogger "/l:QBLogger,D:\Program Files\buildagent_v2\temp\PMEase.QuickBuild.MSBuild.Logger.dll;v=detailed" One_DD_Comp/One_DD_Component/01Dev/Build/TestBuild.prj
See detailed errors below:
MSBUILD : error MSB1009: Project file does not exist.
Observation:
1. As seen in the log, the command working directory is picked up as project file location "D:\Program Files\buildagent_v2\workspace\TMS\One Dealer Daily\1DD_Solution\One_DD_Comp\One_DD_Component\01Dev\Build", which is correct.
2. However while command gets executed the project file location is not taken as absolute path and is treated non-absolute i.e. One_DD_Comp/One_DD_Component/01Dev/Build/TestBuild.prj. Therefore, the project file is not located.
Let us know, how the project file location can be configured.