MSBUILD : error MSB1009: Project file does not exist.
Switch: C:\ProgramData\Jenkins\.jenkins\workspace\AWS_ROLLBACK.sln
Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
how to resolve this issue
MSBUILD : error MSB1009: Project file does not exist.
Switch: C:\ProgramData\Jenkins\.jenkins\workspace\AWS_ROLLBACK.sln
Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
how to resolve this issue
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhishek YadavPosted Feb 23, 2024, 7:34 AM
This error occurs when the specified project file does not exist at the location provided. To resolve this issue, you can do the following:
1. Double-check the path to the project file specified in the MSBuild build step. Make sure that the path is correct and that the project file exists at that location.
2. If the project file is located in a different directory, update the path in the MSBuild build step to point to the correct location of the project file.
3. Ensure that the Jenkins job has the necessary permissions to access the project file and its parent directories.
4. If the project file is missing or corrupted, try restoring it from a backup or checking out the project from version control.
5. Verify that the project file is included in the source control repository and has not been deleted or moved.
By following these steps, you should be able to resolve the "MSBUILD : error MSB1009: Project file does not exist" issue and successfully build your Visual Studio project or solution using MSBuild in Jenkins.
Jayraj ChhayaPosted Feb 23, 2024, 6:47 AM
To resolve the MSBUILD error in Jenkins build failure, you need to ensure that the project file path specified in the Jenkins job configuration is correct. The error "MSB1009: Project file does not exist" indicates that Jenkins cannot find the specified project file at the given path.
Here are steps to resolve the issue:
By following these steps and ensuring the project file path is accurate, you should be able to resolve the MSBUILD error and successfully build your Visual Studio project using MSBuild in Jenkins.