Missing Files on Build

I've set up a build profile, but when I run it I get the following error

The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the  declaration is correct, and that the file exists on disk.

I googled around and my two options seem to be to copy the file to the server or install visual studio. However, it seems odd that visual studio files are required in the first place. Is this a product of using the the MSBuild runner with the solutions file?  If so, what are my options that would require the fewest number of dependencies. Ideally all I think I would need is the .Net 4 framework and all other dependencies would simple be in source control.



1 comment
Comment actions Permalink

Hi Aeden

the ethos behind CI is that the build server should have as little dependencies installed as possible. Therefore the targets file you need should really be included in your source control so that it can be used as part of the build runner. An alternative would be to replicate the msbuild folder and copy the target files to the build server so that the build scripts do not have to change

I think these are the only 2 ways it can be taken care of - unless you want to install Visual Studio on the build server




Please sign in to leave a comment.