Search code examples
.netsvnjenkinsmsbuildjenkins-plugins

Jenkins Build Error - MSBUILD : error MSB1009: Project file does not exist


I am trying to create a Jenkins job that will build my .NET web application from an SVN repository that I manage with VisualSVN.

I have added the URL of the project folder in the repository trunk folder to the Jenkins job and when I execute the job it runs fine with no errors.

SVN screenshot

I then go onto the build step using "Build a Visual Studio Project or Solution using MSBuild", where I enter the full url of the .sln file.

MSBuild Screenshot

I have configured MSBuild as below and using 4.0 as this is what my application is built in.

MSBuild Settings

Extract from .csProj file:

<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

When I run the job it fails with the following error

MSBUILD : error MSB1009: Project file does not exist.

MSB1009 screenshot

But when I click the link in the screenshot above it opens the file in a browser window?

Any ideas are greatly appreciated?


Solution

  • You should not use the remote URL but the local path. I guess it will be something like:

    .\Hubble\hubble.sln
    

    The plugin will work inside the working directory, which can be found on your build machine at:

    <JENKINS_DIR>\jobs\<JOB NAME>\workspace