SPC015303: Declare File element in Module

A Module should contain at least one File element as child. Otherwise the Module has no need and should be removed.

TypeName: DeclareFileElementInModule
CheckId: SPC015303
Severity: CriticalWarning
Type: ModuleDefinition

Ensure that the Module define at least one File element or remove the Module from the Feature. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <Module Name="ModuleWithFile">
      <File Path="ModuleWithFile\SampleFileSource.txt" Url="ModuleWithMissingFile/SampleFileUploaded.txt" />

comments powered by Disqus