From 91a4b25d7cb85a815eb800ff679ce41519f35824 Mon Sep 17 00:00:00 2001 From: Scott Addie <10702007+scottaddie@users.noreply.github.com> Date: Fri, 10 May 2019 12:37:02 -0500 Subject: [PATCH] Razor Pages areas doc patch (#12368) --- aspnetcore/mvc/controllers/areas.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aspnetcore/mvc/controllers/areas.md b/aspnetcore/mvc/controllers/areas.md index fcca98616e..c2c12c65dc 100644 --- a/aspnetcore/mvc/controllers/areas.md +++ b/aspnetcore/mvc/controllers/areas.md @@ -3,7 +3,7 @@ title: Areas in ASP.NET Core author: rick-anderson description: Learn how Areas are an ASP.NET MVC feature used to organize related functionality into a group as a separate namespace (for routing) and folder structure (for views). ms.author: riande -ms.date: 05/06/2019 +ms.date: 05/10/2019 uid: mvc/controllers/areas --- # Areas in ASP.NET Core @@ -163,9 +163,9 @@ For the preceding code: ### Import namespace and Tag Helpers with _ViewImports file -A *_ViewImports* file can be added to each area *Pages* folder to import the namespace and Tag Helpers to each Razor Page in the folder. +A *_ViewImports.cshtml* file can be added to each area *Pages* folder to import the namespace and Tag Helpers to each Razor Page in the folder. -Consider the *Services* area of the sample code, which doesn't contain a *_ViewImports* file. The following markup shows the */Services/Manage/About* Razor Page: +Consider the *Services* area of the sample code, which doesn't contain a *_ViewImports.cshtml* file. The following markup shows the */Services/Manage/About* Razor Page: [!code-cshtml[](areas/samples/RPareas/Areas/Services/Pages/Manage/About.cshtml)] @@ -174,7 +174,7 @@ In the preceding markup: * The fully qualified domain name must be used to specify the model (`@model RPareas.Areas.Services.Pages.Manage.AboutModel`). * [Tag Helpers](xref:mvc/views/tag-helpers/intro) are enabled by `@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers` -In the sample download, the Products area contains the following *_ViewImports* file: +In the sample download, the Products area contains the following *_ViewImports.cshtml* file: [!code-cshtml[](areas/samples/RPareas/Areas/Products/Pages/_ViewImports.cshtml)] @@ -192,4 +192,4 @@ To share a common layout for the entire app, move the *_ViewStart.cshtml* to the ### Publishing Areas -All `*.cshtml` and `wwwroot/**` files are published to output when `` is included in the.csproj* file. +All *.cshtml files and files within the *wwwroot* directory are published to output when `` is included in the *.csproj file.