Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ensuring projects in solution are from same TFS branch

Is there an available way to identify if there is any project in a solution or reference in a project which is from another TFS source branch? The goal is to prevent this by alerting users before a check-in or while adding that project/reference.

Thanks.

like image 890
Dienekes Avatar asked Nov 05 '22 02:11

Dienekes


1 Answers

This is probably not the most efficient way, but a band-aid we used...

We setup a gated checkin build that only checks out the specific source directory for that branch. Any references above or outside the branch root throws an error.

Hope this helps.

like image 150
lukiffer Avatar answered Nov 09 '22 06:11

lukiffer