I am trying to create a a feature staple. To do this I need to create a feature and then edit the feature.xml to be like:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
        TemplateName="STS#0" />
        TemplateName="STS#1" />

I have created a feature in Visaul Studio 2010. I however can't seem to find the feature.xml to edit. Where would I find this file in visual studio?


Add these lines (inside the Elements tag) to an 'Empty Element' project item, then add that Project Item to a Feature (Scoped to Web Application, for example) in the solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.