<PackageReference Include="Castle.Windsor" Version="4.1.1" />

IUsingContainerAsServiceLocatorDiagnostic

Detects components that are not extending Windsor's infrastructure yet depend on the container which usually means they use the container as service locator which is a bad practice and should be avoided. Consult the documentation for more details: http://j.mp/WindsorSL
using Castle.MicroKernel; namespace Castle.Windsor.Diagnostics { public interface IUsingContainerAsServiceLocatorDiagnostic : IDiagnostic<IHandler[]> { } }