Working with local builds and TeamCity builds and file references

Answered

Hi, almost certainly a stupid question, but I can't see how to work with dlls with file reference on both local dev machines and in TeamCity.

We have a fixed folder structure at the moment and we have references like "C:\Development\CompanName\ProjectA\bin\release\ProjectA.dll"

This is needed for building/testing on developer machines. I'm puzzled how artifact dependencies work when using file references.

From what I've seen an artifact dependency causes the artifact to be copied to the bin\release (or bin\debug) - but the project still refers to the required dll via  "C:\Development\CompanName\ProjectA\bin\release\ProjectA.dll"- ignoring the locally copied dependency.

How do artifact dependencies bring benefit when using file references?

Thanks

Richard

0
2 comments

Hi,

You can choose where to download the artifact in the artifact dependency menu. In the artifact rules field, you can add an entry such as 'ProjectA.dll => C:\Development\CompanName\ProjectA\bin\release\'. This will copy the file to "C:\Development\CompanName\ProjectA\bin\release\" on the build agent at the start of the build.

For more information, you may want to read our documentation covering Artifact Dependencies: https://www.jetbrains.com/help/teamcity/artifact-dependencies.html

 

0

That's the bit I missed - push the artefact to another folder. Thanks very much

0

Please sign in to leave a comment.