Variables in TFS Mappings in Team Visual Studio Assemblies

I created a VSO build using the new Team build system, which uses TFS as a repository. I would like to introduce a variable in the value Mappings -> Map, but when I get this error:

TF10122: The path '$/YourProject/${Build}' contains a '$' at the beginning of a path component. Remove the '$' and try again. 

Is there a way to accomplish this, or do I just need to copy my path to the map?

+2
source share
2 answers

Mappings on the repository page are used to specify the version control folder that contains the projects that you want to build in the assembly definition. You can set it by clicking the Ellipsis (...) button, however you cannot include variables in the mapping path.

+1
source

I also have this problem, I would like to set the branch to be built in order to have one assembly that I can associate with one version (in vso), since the Vso release system does not have global environment definitions,

In any case, it was possible, but they removed this opportunity without replacing it with something else that seemed to be annoying.

I worked on this, adding mappings to both my dev and the main branch to different local folders, and then using a variable to distinguish them in the actual build steps. Until you need to display a ton of branches, this works, although it's a bit cumbersome.

+1
source

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


All Articles