How to create custom SharePoint 2010 Content Type using Visual Studio 2010

In this article we are going to create custom Content Type using visual studio 2010.

Steps Involved:

Creating Empty SharePoint Project:

  • Open Visual Studio 2010. 

  • Go to File => New => Project. 

  • Select 2010 from the installed templates SharePoint and choose Empty SharePoint Project. 

  • Name it as CustomContentType.


  • Click Add. 

  • Enter the SharePoint server farm URL. 

  • Select 'Deploy it as a Farm Solution". 

  • Click Finish.


Adding Content Type:

  • Right click the Solution Explorer and select Add a new item. 

  • Select Content Type from the installed templates SharePoint and name it as CustomContentType.