Change to add attribute before building
Change to add attribute before building

Avoids issues when converting to properties early (which happens along most
generated build paths today and should be all in future).
