In a bowl attached to a stand mixer (or with a hand mixer), cream together butter and sugar until light and creamy. Add in eggs one at a time, beating well after each addition. Add vanilla extract, lemon zest and rosemary and beat until smooth. With mixer on low speed, add in flour and mix just until mixture forms a soft dough–do not overmix.