From d596162d86483afac1dea59615b37b882a875028 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Wed, 15 Aug 2018 17:33:21 -0500 Subject: [PATCH] Add prereq for the required package (#8106) Fixes #7743 cc: @Phrohdoh --- .../fundamentals/configuration/options.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/aspnetcore/fundamentals/configuration/options.md b/aspnetcore/fundamentals/configuration/options.md index 3787a7c452..d6b0e20295 100644 --- a/aspnetcore/fundamentals/configuration/options.md +++ b/aspnetcore/fundamentals/configuration/options.md @@ -18,6 +18,26 @@ The options pattern uses classes to represent groups of related settings. When c [View or download sample code](https://github.com/aspnet/Docs/tree/master/aspnetcore/fundamentals/configuration/options/sample) ([how to download](xref:tutorials/index#how-to-download-a-sample)) This article is easier to follow with the sample app. +## Prerequisites + +::: moniker range=">= aspnetcore-2.1" + +Reference the [Microsoft.AspNetCore.App metapackage](xref:fundamentals/metapackage-app) or add a package reference to the [Microsoft.Extensions.Options.ConfigurationExtensions](https://www.nuget.org/packages/Microsoft.Extensions.Options.ConfigurationExtensions/) package. + +::: moniker-end + +::: moniker range="= aspnetcore-2.0" + +Reference the [Microsoft.AspNetCore.All metapackage](xref:fundamentals/metapackage) or add a package reference to the [Microsoft.Extensions.Options.ConfigurationExtensions](https://www.nuget.org/packages/Microsoft.Extensions.Options.ConfigurationExtensions/) package. + +::: moniker-end + +::: moniker range="< aspnetcore-2.0" + +Add a package reference to the [Microsoft.Extensions.Options.ConfigurationExtensions](https://www.nuget.org/packages/Microsoft.Extensions.Options.ConfigurationExtensions/) package. + +::: moniker-end + ## Basic options configuration Basic options configuration is demonstrated as Example #1 in the [sample app](https://github.com/aspnet/Docs/tree/master/aspnetcore/fundamentals/configuration/options/sample).