[Tizen] Add BuildTools 2.1.0-rc1-02804-05
[platform/upstream/coreclr.git] / Tools / dotnetcli / sdk / NuGetFallbackFolder / microsoft.visualstudio.web.codegenerators.mvc / 2.0.1 / Templates / RazorPageGenerator / Empty.cshtml
1 @inherits Microsoft.VisualStudio.Web.CodeGeneration.Templating.RazorTemplateBase
2 @using Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore
3 @using System.Collections.Generic
4 @using System.Linq
5 @@page
6 @{
7     if (!Model.NoPageModel)
8     {
9 @:@@model @Model.NamespaceName.@Model.PageModelClassName
10     }
11     if (Model.IsPartialView)
12     {
13 @:@@*
14 @:    For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
15 @:*@@
16
17     }
18     else if (Model.IsLayoutPageSelected)
19     {
20 @:@@{
21     @:ViewData["Title"] = "@Model.ViewName";
22         if (!string.IsNullOrEmpty(Model.LayoutPageFile))
23         {
24     @:Layout = "@Model.LayoutPageFile";
25         }
26 @:}
27 @:
28 @:<h2>@Model.ViewName</h2>
29 @:
30     }
31     else
32     {
33 @:@@{
34     @:Layout = null;
35 @:}
36 @:
37 @:<!DOCTYPE html>
38 @:
39 @:<html>
40 @:<head>
41     @:<meta name="viewport" content="width=device-width" />
42     @:<title>@Model.ViewName</title>
43 @:</head>
44 @:<body>
45     }
46     if (Model.ReferenceScriptLibraries)
47     {
48 @:@@section Scripts {
49     @:@@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
50 @:}
51     }
52     // The following code closes the tag used in the case of a view using a layout page and the body and html tags in the case of a regular view page
53     if (!Model.IsPartialView && !Model.IsLayoutPageSelected)
54     {
55 @:</body>
56 @:</html>
57     }
58 }