From 73bf19d7664d5dee5732297f1646e30015b98a9d Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 26 Oct 2024 21:51:37 +0300 Subject: [PATCH] Add readme note about keyed services with `M.E.DI` Related to #148 --- Readme.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Readme.md b/Readme.md index bd06626..2de849c 100644 --- a/Readme.md +++ b/Readme.md @@ -578,6 +578,10 @@ public static class Program } ``` +> **Note**: +> If you want to use certain advanced features provided by `Microsoft.Extensions.DependencyInjection`, you may need to do a bit of extra work to configure the container properly. +> For example, to leverage support for keyed services, you need to [manually register an implementation of `IKeyedServiceProvider`](https://github.com/Tyrrrz/CliFx/issues/148). + ### Testing Thanks to the `IConsole` abstraction, **CliFx** commands can be easily tested in isolation.