I know how to create lists with Visual Studio.
I need hint on how to create the custom list named 'test' with Title, URL and an boolean field only on the RootWebs of every site collection the feature is deployed and activated on.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAdd the RootWebOnly="true" property to your custom list. The Feature with the Custom List must be scoped to Site.
<ListInstance Title="My custom list"
FeatureId="00BFEA71-DE22-43B2-A848-C05709900100"
TemplateType="100"
Id="MyCustomList"
Description="Simple custom list sample."
Url="Lists/MyCustomList"
OnQuickLaunch="true"
RootWebOnly="true" />