The core library takes a dependency on `Castle.Core` which should be migrated to `Microsoft.Extensions.DependencyInjection` to optimise deployments.