views:

310

answers:

0

I'm currently looking at moving a WSS3 solution to SharePoint 2010. The solution uses VSEWSS and includes some site definitions that make modifications to sites in code. Just wondered how I can replicate this with the site definition project type in Visual Studio 2010? Do I just create a feature with an event receiver and then add the feature to in onet.xml? Or is there a different/better way of doing this? Looked at the WebProvisioned event receiver - but I need the site definition modifications to work on the toplevel site when a site collection is created - and the WebProvisioned event doesn't seem to work on the root site.

If using a feature added to onet.xml - then I have the problem of the feature being activated when deploying - VSEWSS would not activate the hidden features for site definitions on deployment. Any ideas how to get round that (solution includes a number of other features that I do want activated on deployment)?