Home
About Us
Advertise
Printable version
Learn to use SharePoint Project Items
By Phil Jirsa
July 9, 2012 —
(Page 1 of 2)
SharePoint Project Items, or SPIs, are a key ingredient to any SharePoint solution created with Visual Studio. They are templates of reusable components that can be easily added to your SharePoint project to add specific functionality. Even more than that, they ultimately become the element manifests of the feature definitions that make up your SharePoint Solution Package. Learning the capabilities and purposes of these items is important to creating a streamlined and maintainable solution for your SharePoint environment.
SPIs
Let’s take a closer look behind the scenes of a SharePoint Project Item. First, we can create a sample SharePoint project to work with. Open Visual Studio and create a new empty SharePoint project. You can call it whatever you like. Mine is called SharePointProject1.
Right-click the project folder from the Solution Explorer and choose “Add,” then “New item.” Next, select the SharePoint group. All of the items you see here are SharePoint Project Item templates. Each of these items can help us easily create a certain type of element or artifact for our SharePoint project and let us customize them as necessary.
Choose to create a new Visual Web Part by selecting that item, giving it a name, and then clicking “Add.” Visual Studio will now create a new SPI for our Visual Web Part in our project.
Figure 1
Next, if we look at the Solution Explorer, we’ll see that we now have a feature to deploy our item, called Feature1. Click on the VisualWebPart1 that we created in Solution Explorer and make sure that the item is expanded. You can see that the SPI looks just like a folder and contains several items.
Figure 2
Notice that the first file is the “elements.xml” file, which contains the elements manifest for the SharePoint Item. Our SPI was automatically added to Feature1 for us. This will deploy the artifacts in our SPI when this feature is installed and/or activated to the farm. We could have chosen to include it in a different feature or a pre-existing feature by adding it from that feature’s Feature Designer page.
Next Page
Related Search Term(s):
SPIs
Pages
1
2
Share this link:
https://sptechweb.com/link/36785
Add comment
Name*
Email*
Country
United States
Canada
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua & Barbuda
Antilles, Netherlands
Arabia, Saudi
Argentina
Armenia
Aruba
Australia
Austria
Azerbaijan
Bahamas, The
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia
Bosnia and Herzegovina
Botswana
Brazil
British Virgin Islands
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Congo
Cook Islands
Costa Rica
Cote D'Ivoire
Croatia
Cuba
Cyprus
Czech Republic
Denmark
Djibouti
Dominica
Dominican Republic
East Timor (Timor-Leste)
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands (Malvinas)
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
Gabon
Gambia, the
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guam
Guatemala
Guernsey
Guinea
Guinea-Bissau
Guinea, Equatorial
Guyana
Haiti
Holland (see Netherlands)
Honduras
Hong Kong, (China)
Hungary
Iceland
India
Indonesia
Iran, Islamic Republic of
Iraq
Ireland
Israel
Italy
Jamaica
Japan
Jordan
Kazakhstan
Kenya
Kiribati
Korea (North)
Korea (South)
Kuwait
Kyrgyzstan
Laos
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macao, (China)
Macedonia, TFYR
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Marshall Islands
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Micronesia, Federated States of
Moldova, Republic of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands
Netherlands Antilles
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
Northern Mariana Islands
Norway
Oman
Pakistan
Palau
Palestinian Territory
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russia (Russian Federation)
Rwanda
Saint Helena
Saint Kitts and Nevis
Saint Lucia
Saint Pierre and Miquelon
Saint Vincent and the Grenadines
Samoa
San Marino
Sao Tome and Principe
Saudi Arabia
Senegal
Serbia & Montenegro
Seychelles
Sierra Leone
Singapore
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
Spain
Sri Lanka
Sudan
Suriname
Swaziland
Sweden
Switzerland
Syrian Arab Republic
Taiwan
Tajikistan
Tanzania, United Republic of
Thailand
Timor-Leste (East Timor)
Togo
Tokelau
Tonga
Trinidad & Tobago
Tunisia
Turkey
Turkmenistan
Turks and Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom
Uruguay
Uzbekistan
Vanuatu
Vatican City State (Holy See)
Venezuela
VietNam
Virgin Islands, British
Virgin Islands, U.S.
Wallis and Futuna
Western Sahara
Yemen
Zambia
Zanzibar
Zimbabwe
[Not specified]
Compose