Automatic Activation in SharePoint 2010 Features Created with Visual Studio 2010
Creating packages and features for SharePoint 2010 is a breeze with Visual Studio 2010. Projects support automatic feature and package deployment for list templates, web parts, site templates and others.
When creating a library template at the web scope level I couldn’t work out why my feature was becoming activated at the site collection top level site, but was inactivated in other sites in the site collection.
It turns out this is the default deployment behaviour in Visual Studio. To change, select the project in the Solution Explorer and press F4 to display the properties pane for the project. Change the “Active Deployment Configuration” property from “Default” to “No Activation”: