SPC015705: Deploy missing file in Ribbon for CustomAction

If a CustomAction references a file in ribbon (e.g. an icon) the file must be deployed.

TypeName: DeployMissingRibbonImageOfCustomAction
CheckId: SPC015705
Severity: Error
Type: CustomActionDefinition
Resolution

Add the necessary images to the solution as TemplateFile. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <CustomAction Id="Ribbon.Library.Actions.ReplacementButton"
      Location="CommandUI.Ribbon"
      RegistrationId="101"
      RegistrationType="List"
      Title="Replace a Ribbon Button">
      <CommandUIExtension>
         <CommandUIDefinitions>
            <CommandUIDefinition Location="Ribbon.Library.Actions.ConnectToClient">
               <Button Id="Ribbon.Library.Actions.ConnectToClient.ReplacementButton"
                  Command="ReplacementButtonCommand"
                  Image16by16="~site/_layouts/images/icons/Icon16.png"
                  Image32by32="~site/_layouts/images/icons/Icon32.png"
                  LabelText="Replaced Button"
                  TemplateAlias="o2" />
            </CommandUIDefinition>
         </CommandUIDefinitions>
         ...
      </CommandUIExtension>
   </CustomAction>
</Elements>

comments powered by Disqus