From e65b4337aba8522ff21789d2c33b5972e966198b Mon Sep 17 00:00:00 2001 From: Shawn Cicoria Date: Thu, 16 Aug 2018 12:40:03 -0400 Subject: [PATCH] fix the highlighting for AddUserSecrets (#8124) Docs: Code hightlighted in snippet is NOT the code that the section is referring to. Prior 5-8 is not the AddUserSecret call - line 12 of the snippet is --- aspnetcore/security/app-secrets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/security/app-secrets.md b/aspnetcore/security/app-secrets.md index a23c014ee1..e536e301e5 100644 --- a/aspnetcore/security/app-secrets.md +++ b/aspnetcore/security/app-secrets.md @@ -181,7 +181,7 @@ The [ASP.NET Core Configuration API](xref:fundamentals/configuration/index) prov Add the user secrets configuration source with a call to [AddUserSecrets](/dotnet/api/microsoft.extensions.configuration.usersecretsconfigurationextensions.addusersecrets) in the `Startup` constructor: -[!code-csharp[](app-secrets/samples/1.x/UserSecrets/Startup.cs?name=snippet_StartupConstructor&highlight=5-8)] +[!code-csharp[](app-secrets/samples/1.x/UserSecrets/Startup.cs?name=snippet_StartupConstructor&highlight=12)] ::: moniker-end ::: moniker range=">= aspnetcore-2.0" The [ASP.NET Core Configuration API](xref:fundamentals/configuration/index) provides access to Secret Manager secrets. If your project targets the .NET Framework, install the [Microsoft.Extensions.Configuration.UserSecrets](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.UserSecrets) NuGet package.