This project has moved and is read-only. For the latest updates, please go here.

Make assembly CLSCompliant


FxCop expects all assemblies to be CLS-compliant. In order to get our services to pass FxCop (part of our standards), our public classes need to be CLS-compliant. Since UnityServiceHostFactory is not compliant and we have to descend from that, we need to make our WcfServiceFactory internal. That works, but then we have to add a SuppressMessage attribute to get rid of the FxCop warning: AvoidUninstantiatedInternalClasses.

Typically this is simply a matter of adding
[assembly: CLSCompliant(true)]
to the AssemblyInfo.cs file in the Unity.WCF project.