Remove Grace from external DI container conformance tests
Drop Grace from Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests and the README's list of recognised third-party containers. Grace has now been explicitly sunset by its author. From the Grace README:
After many years of development I am making the decision to sunset Grace. While it's still possible to use Grace, the evolution of the built-in dependency injection container has made Grace less relevant. […] You can check out my next project that builds on top of the existing Microsoft DI container: https://github.com/ipjohnson/DependencyModules.
| Signal | Value |
|---|---|
| Deprecation notice committed | 2025-02-08 |
| Last non-README commit | January 2023 |
| Last open PR ("Support for new .net 8.0 features") | unmerged since Jun 2024 |
Grace.DependencyInjection.Extensions (the MS.DI adapter we depend on) |
no release since 7.1.0 |
Grace.cs already skips 3 spec tests + opts out of IServiceProviderIsService |
yes |
Steps
- Remove the
Grace.DependencyInjection.ExtensionsPackageReferencefromsrc/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.External.Tests/Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.csproj. - Delete
src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.External.Tests/Grace.cs. - Remove the Grace bullet from
src/libraries/Microsoft.Extensions.DependencyInjection/README.md. - Update Microsoft docs section "Default service container replacement" which still lists Grace; that page lives in
dotnet/AspNetCore.Docsand should be updated separately.
Tagging subscribers to this area: @dotnet/area-extensions-dependencyinjection See info in area-owners.md if you want to be subscribed.