I have added 1 Element File for CustomRibbon Button.
And added 1 Feature to deploy this RibbonButton.
When I deploy this, it deploys and Feature is Activated but not displaying the Button in ListRibbon. I don't know what is the problem ?
But when I write ElementFile Location="Ribbon.xml
in ElementManifests tag of Feature it gives me an error while deploying.
Error occurred in deployment step 'Add Solution': Error: Cannot find this file specified in the manifest file:MyProject_MyRibbon\Ribbon.xml
My Element.xml file is as under:
<CustomAction
Id="{E538E8C7-65DA-454E-AD87-4A603B6CC679}"
RegistrationId="100"
RegistrationType="List"
Location="CommandUI.Ribbon"
Sequence="5"
Title="My Custom-Ribbon" >
<CommandUIExtension xmlns="http://schemas.microsoft.com/sharepoint/">
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.List.Settings.Controls._children">
<Button
Id="{C3842C6A-B15D-44EF-94A4-2137E74A8701}"
Alt="My Custom Ribbon"
Sequence="5"
Command="{A9AF0088-FE1C-4EA2-9E94-FDF02E101D4C}"
Image32by32="_layouts/Images/Test/ABC.jpg"
Image16by16="_layouts/Images/Test/ABC.jpg"
LabelText="My CustomRibbon"
TemplateAlias="o1" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="{A9AF0088-FE1C-4EA2-9E94-FDF02E101D4C}"
CommandAction="javascript:alert('SharePoint 2010 Rocks!');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>