MSBUILD : error MSB1009: Project file does not exist.
Posted: Thu May 03, 2018 3:10 pm
Hi,
I am trying to learn Ranorex integration with Jenkins. Initially, my setup was
- Jenkins and Ranorex are running on same machine.
- No SCM is configured to use in Jenkins.
- Using sample project 'KeyPassTestSuite' to learn integration things.
- Jenkins master is not running as service .
It worked well and I was able to build and run KeyPassTestSuite project using Jenkins job. In this configuration, I was using absolute paths in "Build" configuration area in created job for MSBuild and for running Ranorex test suite.
Then
I added jenkins slave machine to run ranorex scripts on this machine. Now the setup is like
- Jenkins master(Server 2012R2) and Ranorex are running on same machine.
- Jenkins slave is running on different machine (Win7) with Ranorex main components and ranorex runtime license are installed
- No SCM is configured to use in Jenkins.
- Using sample project 'KeyPassTestSuite' to learn integration things.
- Both jenkins master and slave are not running as service.
When I try to execute ranorex scripts on slave machine, it throw me an error in console output
MSBUILD : error MSB1009: Project file does not exist.
While googtling, It was found that I need to use relative paths instead of absolute path in Build configuration of created job. I changed absolute paths to relative paths for MSBuild and Ranorex test suite files but the results were same with same error.
I then tried to run same job having relative paths in Build configuration on master machine and it didn't work there either So in summary
- If paths in build configuration are absolute then it is working OK on jenkins master machine but not on jenkins slave machine.
- If paths in build configuration are relative then its not working on master nor on slave machine.
I am using Ranorex 8.0 atm.
Any help in this regard will be appreciated.
Thanks,
I am trying to learn Ranorex integration with Jenkins. Initially, my setup was
- Jenkins and Ranorex are running on same machine.
- No SCM is configured to use in Jenkins.
- Using sample project 'KeyPassTestSuite' to learn integration things.
- Jenkins master is not running as service .
It worked well and I was able to build and run KeyPassTestSuite project using Jenkins job. In this configuration, I was using absolute paths in "Build" configuration area in created job for MSBuild and for running Ranorex test suite.
Then
I added jenkins slave machine to run ranorex scripts on this machine. Now the setup is like
- Jenkins master(Server 2012R2) and Ranorex are running on same machine.
- Jenkins slave is running on different machine (Win7) with Ranorex main components and ranorex runtime license are installed
- No SCM is configured to use in Jenkins.
- Using sample project 'KeyPassTestSuite' to learn integration things.
- Both jenkins master and slave are not running as service.
When I try to execute ranorex scripts on slave machine, it throw me an error in console output
MSBUILD : error MSB1009: Project file does not exist.
While googtling, It was found that I need to use relative paths instead of absolute path in Build configuration of created job. I changed absolute paths to relative paths for MSBuild and Ranorex test suite files but the results were same with same error.
I then tried to run same job having relative paths in Build configuration on master machine and it didn't work there either So in summary
- If paths in build configuration are absolute then it is working OK on jenkins master machine but not on jenkins slave machine.
- If paths in build configuration are relative then its not working on master nor on slave machine.
I am using Ranorex 8.0 atm.
Any help in this regard will be appreciated.
Thanks,