This is a quick fire blog that will enable you to create a document library with code in Visual Studio
In this post we carry on the everyday task series with creating a document library through code and via Visual Studio.
- Right click on the feature and add feature > Make it web Scoped > and then right click the feature and rename it to something meaningful
- Right click on the feature and then add Event Receiver
- In the event receiver uncomment the FeatureActivated and the FeatureDeactivating methods and you can remove the rest
- Go to the properties of the project and the SharePoint Tab under active Deployment Configuration select No Activation (this means that you will need to activate the feature manually).