Creating the Web Part Project
Web Parts should be built using the Web Part Library project. So let’s go ahead and create this project.
1. In Visual Studio .NET, select Create New Project (Shift + Ctrl + N).
2. Select the project type as Visual C# Projects, and choose the new Web Part Library template from the right-hand pane.
3. Name the new project
ExtensibleMCMSPageListingWebPart
, and place the project directory underMy Documents\Visual Studio Projects
.4. Click OK.
Once our new project is created, we can see a variety of files and references that have been created by the template:
Some of the most important of these are:
References to:
Microsoft.SharePoint
—SharePoint’s main APISystem.Web
—.NET Framework namespace holding classes for web operationsSystem.Xml
—.NET Framework namespace holding classes for XML operations
AssemblyInfo.cs
—used to define the metadata of the assembly and to specify a key file to sign it.Manifest.xml
—used to populate CAB...