SPC060206: Do not deploy empty Assemblies |
SPC060206: Do not deploy empty Assemblies |
Assemblies without custom classes should not be deployed to SharePoint. This helps to reduce unneeded IISResets during deployment.
TypeName: | DoNotDeployEmptyAssemblies |
CheckId: | SPC060206 |
Severity: | Warning |
Type: | AssemblyFileReference |
Remove empty Assembly from Solution.
Sometimes it may be necessary to deploy an empty assembly. One reason could be to avoid a 'Globally' deployment of the Solution and enforce the deployment 'per Webapplication'. This can achieve by adding a 'SafeControl' to the manifest.xml. But this makes an assembly necessary which may be empty.
Visual Studio automatically includes the assembly in WSP packages. To avoid this set property 'Include Assembly in Package' to FALSE.
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 |