I've written some code which needs to be exacuted when creating a new site.
The site should look like something between a blank site and a team site. (Very basic) And also uses a custom master page.

I thought of creating a Site Definition starting from the team site and stripping it down,
and adding the code behind through a feature with feature receiver. (Would do it like this for 2007)
Is this a good approach for 2010 or should I create a Web template?

Does anyone has some guidelines/tutorials for creating team site Web Templates in VS2010?

2 Answers 2


When working with SharePoint 2010 you should always try to use Web Templates instead of Site Definitions. The biggest benefit is the ability to update Web Templates and there are only a few edge cases when you would need to fall back to Site Definitions.


This doesn't specifically answer your Feature Receiver question. However, when looking at Side Definitions vs. Web Templates, I suggest you read this article on MSDN.

  • +1 for nice link
    – Anonymous
    Feb 2, 2011 at 5:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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