Reputation: 1333
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.
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.
I have configured MSBuild as below and using 4.0 as this is what my application is built in.
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.
But when I click the link in the screenshot above it opens the file in a browser window?
Any ideas are greatly appreciated?
Upvotes: 8
Views: 52023
Reputation: 91
For me it was an issue with Authorization to jenkins as it wasn't able to read/write that file as mentioned here Fix:
Upvotes: 1
Reputation: 7385
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
Upvotes: 9
Reputation: 8670
You are checking out the code! You will need to specify the local path to the solution. meaning, something like $WORKSPACE/Path/To/sln.file
Good luck
Upvotes: 3