If you are a SharePoint Developer and are not using Visual Studio 2008 Extensions for Windows SharePoint Services yet, please read Paul Andrew detail how VSeWSS 1.3 March 2009 CTP addresses all common SharePoint Developer requests.
When you are using the extensions, the first thing you might try to do after watching Kirk’s video is use the MOSS SDK Empty SharePoint template to create a very basic feature whose Element Manifest might look like this:
Warning: Don’t User Add New Item to Create your Manifest!
When adding a new Element Manifest in VSeWSS, the method you use is very important.
Method 1: WSP View Create New Feature
|Step 1 is the same for both Methods. Create a new Visual Studio Project using the SharePoint SDK Empty template. This will give you an empty project with the correct SharePoint References and just a manifest.xml in WSP View.|
|Step 2: From WSP View, hit Refresh to show the Solution name in the window and expand the solution to see the Manifest.xml. Click the Create new feature button to open the create new feature dialog.|
|Step 3: For the simplest custom action feature, select Web scope and check “Add default element.xml file.”|
|Result: A new feature and a new element in your WSP View with the corresponding .xml files created. And, you will see a new Element1.xml file in your Solution Browser. Double click Element1.xml to open in the text editor to add your action. You can paste the code inside my ElementManifest1.xml CustomAction Element for a quick example of a new Site Action. Make sure that you don’t remove the Elements ID attribute that was generated by VSeWSS .|
Method 2: Add | Exisiting Item
- Repeat Step 1 from Method 1, then download ElementManifest1.xml to your local hard drive.
- Right click the project in Solution Explorer and select Add | Existing Item.
- After you select ElementManifest1.xml, you will see it appear as in the results above for Method 1.
- The ID Attribute will be generated by VSeWSS and inserted into Elements element of the file
- A reference to the manifest will be added to feature.xml.