I'm having some difficulty creating a Feature which contains a Web Part and a links.xml which is processed by the WP code-behind. My difficulty is in understanding the Feature XML config files and incorporating the links.xml file in the Feature:
(1) There is a Feature folder with an xml file called Feature1.Template.xml. Is is standard practice to rename this to something more meaningful?
(2) The Elements manifest file has some entries that I cannot find meaningful documentation for; for example the "property" element:
http://msdn.microsoft.com/en-us/library/ms465236.aspx
UPDATE:
I'm getting the following error: "Error occurred in deployment step 'Activate Features': Failed to instantiate file "links.xml" from module "WP_Resources": The specified list does not exist."
Can someone offer up an explanation?
<?xml version="1.0" encoding="utf-8" ?>
<Feature Id="4BB4B62C-4F2F-4BB5-A477-DF783B802DD5"
Title="SecureLinksWP"
Scope="Site"
Version="1.0.0.1"
Hidden="FALSE"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="SecureLinks\Elements.xml" />
<ElementFile Location="SecureLinks\SecureLinks.webpart" />
<ElementManifest Location="WP_Resources\Elements.xml" />
<ElementFile Location="WP_Resources\links.xml" />
</ElementManifests>
</Feature>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="WP_Resources" Path="WP_Resources">
<File Path="links.xml" Url="links.xml" Type="GhostableInLibrary" />
</Module>
</Elements>