Add prereq for the required package (#8106)

Fixes #7743 

cc: @Phrohdoh
pull/8108/head
Luke Latham 2018-08-15 17:33:21 -05:00 committed by Scott Addie
parent 0fdc52987e
commit d596162d86
1 changed files with 20 additions and 0 deletions

View File

@ -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 &num;1 in the [sample app](https://github.com/aspnet/Docs/tree/master/aspnetcore/fundamentals/configuration/options/sample).