Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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/">
    <FeatureSiteTemplateAssociation
        Id="edcdcd75-dff2-479d-ac32-b37f8fa9d459"
        TemplateName="STS#0" />
    <FeatureSiteTemplateAssociation
        Id="edcdcd75-dff2-479d-ac32-b37f8fa9d459"
        TemplateName="STS#1" />
</Elements>

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?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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