From 50491c4ac69ee1f6170408ae2dd97d7790fdd678 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:59:48 -1000 Subject: [PATCH 1/2] Update configuration.md ropc --- aspnetcore/migration/configuration.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aspnetcore/migration/configuration.md b/aspnetcore/migration/configuration.md index b9c471d366..9e7c9485e0 100644 --- a/aspnetcore/migration/configuration.md +++ b/aspnetcore/migration/configuration.md @@ -5,6 +5,7 @@ description: Learn how to migrate configuration from an ASP.NET MVC project to a ms.author: riande ms.date: 10/14/2016 uid: migration/configuration +ms.sfi.ropc: t --- # Migrate configuration to ASP.NET Core @@ -20,6 +21,8 @@ ASP.NET Core no longer uses the *Global.asax* and *web.config* files that previo The *web.config* file has also been replaced in ASP.NET Core. Configuration itself can now be configured, as part of the application startup procedure described in `Startup.cs`. Configuration can still utilize XML files, but typically ASP.NET Core projects will place configuration values in a JSON-formatted file, such as `appsettings.json`. ASP.NET Core's configuration system can also easily access environment variables, which can provide a [more secure and robust location](xref:security/app-secrets) for environment-specific values. This is especially true for secrets like connection strings and API keys that shouldn't be checked into source control. See [Configuration](xref:fundamentals/configuration/index) to learn more about configuration in ASP.NET Core. +[!INCLUDE [managed-identities](~/includes/managed-identities-test-non-production.md)] + For this article, we are starting with the partially migrated ASP.NET Core project from [the previous article](xref:migration/mvc). To setup configuration, add the following constructor and property to the `Startup.cs` file located in the root of the project: [!code-csharp[](configuration/samples/WebApp1/src/WebApp1/Startup.cs?range=11-16)] From 5e84509acccfbf02539ad1d7713fa717f4c400ac Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:05:23 -1000 Subject: [PATCH 2/2] Update configuration.md --- aspnetcore/migration/configuration.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/aspnetcore/migration/configuration.md b/aspnetcore/migration/configuration.md index 9e7c9485e0..b4f302bef8 100644 --- a/aspnetcore/migration/configuration.md +++ b/aspnetcore/migration/configuration.md @@ -9,8 +9,6 @@ ms.sfi.ropc: t --- # Migrate configuration to ASP.NET Core -By [Steve Smith](https://ardalis.com/) and [Scott Addie](https://scottaddie.com) - In the previous article, we began to [migrate an ASP.NET MVC project to ASP.NET Core MVC](xref:migration/mvc). In this article, we migrate configuration. [View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/migration/configuration/samples) ([how to download](xref:index#how-to-download-a-sample))