parent
0fdc52987e
commit
d596162d86
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue