Reposted at new location. Orginally published 20-Oct-09
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.
Don’t use Add | New Item to create a new xml file and type in the above code manually.
You will be able to add the new xml file to the project, but WSP View will not pick it up when you add it this way. If you edit the feature.xml to refer to it, your change will be reverted automatically.
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.
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.