SPC060405: Do not deploy files of a Feature as TemplateFile |
SPC060405: Do not deploy files of a Feature as TemplateFile |
File which are deployed into the folder of a Feature should not be deployed as TemplateFile. Either deploy the files as ElementFiles in the Feature (preferred) or as Resources in manifest.xml.
TypeName: | DoNotDeployFeatureFilesAsTemplateFile |
CheckId: | SPC060405 |
Severity: | CriticalWarning |
Type: | TemplateFileReference |
Deploy the file as ElementFile in the feature.xml of the target Feature (edit feature.xml) or deploy the file as Resource (edit manifest.xml). See sample below:
Bad Practice:
comments powered by Disqus
Copyright © 2013 RENCORE AB. All Rights Reserved
Disclaimer: The views and opinions expressed in this documentation and in SPCAF are those of the creators and do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. All trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners. SharePoint Code Analysis Framework, Version 4.5.2.7855, see www.spcaf.com for more information |