From 3d493a6dfc78368c4e5ca4a86b5a0eb955caa87b Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Fri, 29 Sep 2017 15:11:12 -0500 Subject: [PATCH] Minor edits --- aspnetcore/migration/1x-to-2x/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/migration/1x-to-2x/index.md b/aspnetcore/migration/1x-to-2x/index.md index bc1c66a06e..7e28fe106b 100644 --- a/aspnetcore/migration/1x-to-2x/index.md +++ b/aspnetcore/migration/1x-to-2x/index.md @@ -98,9 +98,10 @@ The adoption of this new 2.0 pattern is highly recommended and is required for p ``` Unable to create an object of type ''. Add an implementation of 'IDesignTimeDbContextFactory' to the project, or see https://go.microsoft.com/fwlink/?linkid=851728 for additional patterns supported at design time. ``` + ## Adding additional configuration -In 2.0 projects, the boilerplate configuration code runs behind the scenes. By default, environment variables and application settings are loaded into startup so all that is required in *Startup.cs* is initializing `IConfiguration` with the injected instance. To add additional providers, or change the existing providers, utilize `ConfigureAppConfiguration` on `IWebHostBuilder` in *Program.cs*. The setup is similar to 1.x +In 2.0 projects, the boilerplate configuration code runs behind-the-scenes. By default, environment variables and app settings are loaded into startup so all that is required in *Startup.cs* is initializing `IConfiguration` with the injected instance. To add additional providers or to change existing providers, utilize `ConfigureAppConfiguration` on `IWebHostBuilder` in *Program.cs*: ```csharp var host = new WebHostBuilder() @@ -112,7 +113,6 @@ In 2.0 projects, the boilerplate configuration code runs behind the scenes. By d }); ``` - ## Review your Razor View Compilation setting