Build Number Format in TFS

I want to include the version number of a specific assembly in my assembly definition number format, for example, instead of having the default value [$ (BuildDefinitionName) $ (Date: yyyyMMdd) $ (Rev: .r)], I want to have something like [$ (BuildDefinitionName) $ (Date: yyyyMMdd) $ (Rev: .r) _Major.Minor.Build.Revision]

Is it possible? are custom macros?

+6
source share
2 answers

Try Creating a scheme to create a new assembly number . I believe that this is what you are looking for.

If you are still using .proj because of the update template, all you do is create a custom task that inherits from Microsoft.Build.Utilities.Task, and you can set this information there.

Hope this helps.

+4
source

Macros are not configurable. Microsoft provides a limited number of build number tokens that can be replaced in the Update Build Number action.

+1
source

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


All Articles