Inserted a note to add references (#13067)
Added assemblies Microsoft.Extensions.Logging and Microsoft.Extensions.Configuration as Visual Studio auto-suggestion is also not recognising them.pull/13110/head
parent
3903404f3a
commit
b804af05c7
|
@ -25,6 +25,8 @@ To add a provider, call the provider's `Add{provider name}` extension method in
|
|||
|
||||
[!code-csharp[](index/samples/2.x/TodoApiSample/Program.cs?name=snippet_ExpandDefault&highlight=18-20)]
|
||||
|
||||
The preceding code requires references to `Microsoft.Extensions.Logging` and `Microsoft.Extensions.Configuration`.
|
||||
|
||||
The default project template calls <xref:Microsoft.AspNetCore.WebHost.CreateDefaultBuilder%2A>, which adds the following logging providers:
|
||||
|
||||
* Console
|
||||
|
|
Loading…
Reference in New Issue