From 88cc5787fc1e6750655ae5622ba4b514110acdf4 Mon Sep 17 00:00:00 2001 From: Dubem Enyekwe Date: Fri, 19 May 2017 11:16:28 -0500 Subject: [PATCH] Possible issues with Full scaffolding in VS17 The full scaffolding seems to be referencing the wrong layout files --- known-issues-vs2017.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/known-issues-vs2017.md b/known-issues-vs2017.md index e838ea7..33d1a52 100644 --- a/known-issues-vs2017.md +++ b/known-issues-vs2017.md @@ -219,3 +219,34 @@ In Core projects, item templates such as "npm Configuration File", "Bower Config * #### Workaround: Edit the supplied file name before or after creating the file. + + +### Full Scaffolding setting the wrong Layout file + +When using the full scaffolding, the following files are created in the **Views** folder. +* Views + * Shared + * Error.cshtml + * Layout.cshtml + * \_ViewImports.cshtml + * \_ViewStart.cshtml + +The \_ViewStart.cshtml generated, references the wrong layout file +``` +@{ + Layout = "_Layout"; +} +``` + +Instead of + +``` +@{ + Layout = "Layout"; +} +``` + + + + +