How to: Add items to a SharePoint project
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
SharePoint solutions contain one or more projects, each of which contains multiple SharePoint project items. After you open or create a SharePoint solution, you can add either new or existing items to these projects. For example, new workflow projects come with a default form that's named default.aspx, but you can replace that form with a new or different form, or add another ASPX form.
To add a new project item to a SharePoint solution
In Visual Studio, open or create a SharePoint solution.
In Solution Explorer, choose the project's node.
On the menu bar, choose Project > Add New Item to display the Add New Item dialog box.
In the Installed Templates list, expand the SharePoint node, and then choose the 2010 node.
In the list of project item templates, choose a template.
In the Name text box, enter a name, and then choose the OK button.
To add an existing project item to a SharePoint solution
In Visual Studio, open or create a SharePoint solution.
In Solution Explorer, choose the project's node.
On the menu bar, choose Project > Add Existing Item to display the Add Existing Item dialog box.
Browse to the folder that contains the item that you want to add, choose it, and then choose the Add button.