Dependency and TeamCity 7.0 Versions

I decided to follow the “best practice” and only collect my artifacts once and share them between my various assemblies. Thus, I created a master assembly that only builds the correct artifacts, and then other assemblies have an artifact dependency to import preassembled assemblies and .exe.

Sorry, I ran into a problem. Lines with artifact dependencies do not have the same version as the main assembly. Thus, the master build version may be 2.2.11.6787, but the assembly that runs the tests has version number 2.2.111.6787, even if it uses artifacts with version 2.2.11.6787. The same goes for the nightly build, which runs the full suite of tests.

Is there any way that assemblies that are artifact dependent can inherit version information from the main assembly?

+6
source share
1 answer

You can keep assembly numbers in sync between assemblies associated with artifact dependencies using Dependency Properties Just set the assembly number pattern for the test or nightly assembly to% dep. <bt_id> .build.number%, where <bt_id> is the identifier of your main assembly configuration

+6
source

Source: https://habr.com/ru/post/909733/


All Articles