Libraries and Project Variables Sets

Hello,

If there are some variables in Libraries Variable Sets and a project variable set with the same name and scopes, do the project variables have a top priority to get picked? I would love to get to the point where we could use project vars to override libraries vars and update the nuget checks to support this but its an unknown at this point.

Please, clarify the behavior
Thank, Monika

Hi Monika,

That’s exactly how it works. A Project variable will persist over a Library Set variable with the same name and scopes, as project variables are considered to be more specific.

In the below blogpost we attempt to explain how we approach variable specificity in these cases. It doesn’t explain exactly the Library Variable vs Project Variable, but it should help you understand this topic a bit more:

Best regards,
Dalmiro