I’m learning builds using MSBuild and running them on my newly installed Jenkins CI server.
The problem I’m having is with external dependencies, such as Automapper.dll, and them not being on the build server, so my build fails with ‘Could not locate the assembly “AutoMapper”‘, which is understandable.
I’m not sure how to approach this at all. I’ve searched for the last two days on SO and Google, but just end up more confused. Should I somehow be adding these files into my VS solution, or should them be in the SVN somewhere?
The most basic and common approach is to have a
lib\folder within your source control, and reference those from your solution, using relative paths. That way the build server can locate the files just as your development machines do.One great approach is to use NuGet for package dependencies. Team City by JetBrains already supports it out-of-the-box.
Here’s more info on NuGet in general, and it also shows how it works within Team City: