title | description | ms.date | ms.topic | dev_langs | helpviewer_keywords | author | ms.author | manager | ms.subservice | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Add Items to a SharePoint Project |
Add new or existing items to a SharePoint project in Visual Studio after you open or create a SharePoint solution. |
02/02/2017 |
how-to |
|
|
John-Hart |
johnhart |
mijacobs |
sharepoint-development |
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.
-
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.
-
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.