Expand Minimize

Declare required attribute 'SolutionId' in Solution

Required attribute 'SolutionId' must be declared in Solution.

CheckId SPC010102
TypeName DeclareRequiredAttributesInSolution
Severity CriticalError
Type Solution

Add required attribute 'SolutionId' to Solution. The solution schema definition at MSDN defines the attribute 'SolutionId' as optional value but SPCAF requires a valid solution id.
If the SolutionId is not present the deployment process may fail or existing scripts for installation of the solutions are not working.
See sample below (MSDN):

<Solution SolutionId="4AFC1350-F354-4439-B941-51377E845F2B" xmlns="http://schemas.microsoft.com/sharepoint/">

To suppress this violation in XML SharePoint code add the following comment right before the XML tag which causes the rule violation. Learn more about SuppressMessage here.

<!-- "SuppressMessage":{"rule":"SPC010102:DeclareRequiredAttributesInSolution","justification":"Provide reason for suppression here"} -->
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.