In .NET Core 3.1 and .NET 5 I get the compile error: error CS0103: The name 'Host' does not exist in the current context I had to install the package Microsoft.AspNetCore.App to compile. --- #### Document Details ⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.* * ID: a4eb702a-d75f-f780-aef1-2e858e14258f * Version Independent ID: 9a183e07-d5fd-1de9-796d-3bc77f07e033 * Content: [Use dependency injection - .NET](https://learn.microsoft.com/en-us/dotnet/core/extensions/dependency-injection-usage) * Content Source: [docs/core/extensions/dependency-injection-usage.md](https://github.com/dotnet/docs/blob/main/docs/core/extensions/dependency-injection-usage.md) * Product: **dotnet-fundamentals** * GitHub Login: @IEvangelist * Microsoft Alias: **dapine** --- [Associated WorkItem - 58180](https://dev.azure.com/msft-skilling/Content/_workitems/edit/58180)