diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs index 9903eb40bd..9b354604dc 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs @@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) { builder.AddDirective(Directive); - builder.Features.Add(new Pass()); + builder.Features.Add(new Pass(builder.DesignTime)); return builder; } @@ -58,6 +58,13 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions internal class Pass : RazorIRPassBase, IRazorDirectiveClassifierPass { + private readonly bool _designTime; + + public Pass(bool designTime) + { + _designTime = designTime; + } + // Runs after the @inherits directive public override int Order => 5; @@ -66,6 +73,19 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions var visitor = new Visitor(); var modelType = GetModelType(irDocument, visitor); + if (_designTime) + { + // Alias the TModel token to a known type ('object' if the model type is unknown). + // This allows design time compilation to succeed for Razor files where the token isn't replaced. + var typeName = modelType == "dynamic" ? $"global::{typeof(object).FullName}" : modelType; + var usingNode = new UsingStatementIRNode() + { + Content = $"TModel = {typeName}" + }; + + visitor.Namespace?.Children.Insert(0, usingNode); + } + var baseType = visitor.Class?.BaseType?.Replace("", "<" + modelType + ">"); for (var i = visitor.InheritsDirectives.Count - 1; i >= 0; i--) { @@ -85,12 +105,24 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions private class Visitor : RazorIRNodeWalker { + public NamespaceDeclarationIRNode Namespace { get; private set; } + public ClassDeclarationIRNode Class { get; private set; } public IList InheritsDirectives { get; } = new List(); public IList ModelDirectives { get; } = new List(); + public override void VisitNamespace(NamespaceDeclarationIRNode node) + { + if (Namespace == null) + { + Namespace = node; + } + + base.VisitNamespace(node); + } + public override void VisitClass(ClassDeclarationIRNode node) { if (Class == null) diff --git a/src/Microsoft.AspNetCore.Razor.Evolution/DefaultRazorIRLoweringPhase.cs b/src/Microsoft.AspNetCore.Razor.Evolution/DefaultRazorIRLoweringPhase.cs index 0b0f1b81a9..ad49314ecd 100644 --- a/src/Microsoft.AspNetCore.Razor.Evolution/DefaultRazorIRLoweringPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Evolution/DefaultRazorIRLoweringPhase.cs @@ -3,10 +3,10 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using Microsoft.AspNetCore.Razor.Evolution.Intermediate; using Microsoft.AspNetCore.Razor.Evolution.Legacy; -using System.Diagnostics; namespace Microsoft.AspNetCore.Razor.Evolution { diff --git a/src/Microsoft.AspNetCore.Razor.Evolution/RazorTemplateEngine.cs b/src/Microsoft.AspNetCore.Razor.Evolution/RazorTemplateEngine.cs index a460f30abb..6d109ec14a 100644 --- a/src/Microsoft.AspNetCore.Razor.Evolution/RazorTemplateEngine.cs +++ b/src/Microsoft.AspNetCore.Razor.Evolution/RazorTemplateEngine.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; namespace Microsoft.AspNetCore.Razor.Evolution { diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs index 7bb66ded2c..6ba5b49441 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs @@ -60,7 +60,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions "); var engine = CreateEngine(); - var pass = new ModelDirective.Pass() + var pass = new ModelDirective.Pass(designTime: false) { Engine = engine, }; @@ -87,7 +87,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions "); var engine = CreateEngine(); - var pass = new ModelDirective.Pass() + var pass = new ModelDirective.Pass(designTime: false) { Engine = engine, }; @@ -113,7 +113,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions "); var engine = CreateEngine(); - var pass = new ModelDirective.Pass() + var pass = new ModelDirective.Pass(designTime: false) { Engine = engine, }; @@ -138,7 +138,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions "); var engine = CreateEngine(); - var pass = new ModelDirective.Pass() + var pass = new ModelDirective.Pass(designTime: false) { Engine = engine, }; @@ -154,6 +154,65 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions Assert.Equal("BaseType", @class.BaseType); } + [Fact] + public void ModelDirectivePass_DesignTime_AddsTModelUsingStatement() + { + // Arrange + var codeDocument = CreateDocument(@" +@inherits BaseType +"); + + var engine = CreateEngine(); + var pass = new ModelDirective.Pass(designTime: true) + { + Engine = engine, + }; + + var irDocument = CreateIRDocument(engine, codeDocument); + + // Act + pass.Execute(codeDocument, irDocument); + + // Assert + var @class = FindClassNode(irDocument); + Assert.NotNull(@class); + Assert.Equal("BaseType", @class.BaseType); + + var @namespace = FindNamespaceNode(irDocument); + var usingNode = Assert.IsType(@namespace.Children[0]); + Assert.Equal($"TModel = global::{typeof(object).FullName}", usingNode.Content); + } + + [Fact] + public void ModelDirectivePass_DesignTime_WithModel_AddsTModelUsingStatement() + { + // Arrange + var codeDocument = CreateDocument(@" +@inherits BaseType +@model SomeType +"); + + var engine = CreateEngine(); + var pass = new ModelDirective.Pass(designTime: true) + { + Engine = engine, + }; + + var irDocument = CreateIRDocument(engine, codeDocument); + + // Act + pass.Execute(codeDocument, irDocument); + + // Assert + var @class = FindClassNode(irDocument); + Assert.NotNull(@class); + Assert.Equal("BaseType", @class.BaseType); + + var @namespace = FindNamespaceNode(irDocument); + var usingNode = Assert.IsType(@namespace.Children[0]); + Assert.Equal($"TModel = SomeType", usingNode.Content); + } + private RazorCodeDocument CreateDocument(string content) { var source = RazorSourceDocument.Create(content, "test.cshtml"); @@ -167,6 +226,13 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions return visitor.Node; } + private NamespaceDeclarationIRNode FindNamespaceNode(RazorIRNode node) + { + var visitor = new NamespaceNodeVisitor(); + visitor.Visit(node); + return visitor.Node; + } + private RazorEngine CreateEngine() { return RazorEngine.Create(b => @@ -216,5 +282,15 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions Node = node; } } + + private class NamespaceNodeVisitor : RazorIRNodeWalker + { + public NamespaceDeclarationIRNode Node { get; set; } + + public override void VisitNamespace(NamespaceDeclarationIRNode node) + { + Node = node; + } + } } } \ No newline at end of file diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorEngineTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorEngineTest.cs index 88582c0db7..9cba05cbc4 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorEngineTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorEngineTest.cs @@ -12,7 +12,6 @@ using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Razor; using Microsoft.Extensions.DependencyModel; -using Moq; using Xunit; namespace Microsoft.AspNetCore.Mvc.Razor.Extensions @@ -131,13 +130,14 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions }); var inputContent = ResourceFile.ReadResource(_assembly, inputFile, sourceFile: true); - var item = new TestRazorProjectItem(inputFile) { Content = inputContent, }; + var item = new TestRazorProjectItem("/" + inputFile) { Content = inputContent, }; var project = new TestRazorProject(new List() { item, }); var razorTemplateEngine = new MvcRazorTemplateEngine(engine, project); + razorTemplateEngine.Options.ImportsFileName = "_ViewImports.cshtml"; var codeDocument = razorTemplateEngine.CreateCodeDocument(item); codeDocument.Items["SuppressUniqueIds"] = "test"; codeDocument.Items["NewLineString"] = "\r\n"; @@ -174,13 +174,14 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions }); var inputContent = ResourceFile.ReadResource(_assembly, inputFile, sourceFile: true); - var item = new TestRazorProjectItem(inputFile) { Content = inputContent, }; + var item = new TestRazorProjectItem("/" + inputFile) { Content = inputContent, }; var project = new TestRazorProject(new List() { item, }); var razorTemplateEngine = new MvcRazorTemplateEngine(engine, project); + razorTemplateEngine.Options.ImportsFileName = "_ViewImports.cshtml"; var codeDocument = razorTemplateEngine.CreateCodeDocument(item); codeDocument.Items["SuppressUniqueIds"] = "test"; codeDocument.Items["NewLineString"] = "\r\n"; diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Basic.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Basic.cs index 0e933d2830..81ec738f7c 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Basic.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Basic.cs @@ -1,6 +1,7 @@ namespace AspNetCore { #line hidden + using TModel = global::System.Object; using System; using System.Threading.Tasks; #line 2 "" @@ -28,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_Basic_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_Basic_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { @@ -82,12 +83,12 @@ System.Object __typeHelper = "Microsoft.AspNetCore.Razor.TagHelpers.UrlResolutio #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { -#line 1 "TestFiles/Input/Basic.cshtml" +#line 1 "/TestFiles/Input/Basic.cshtml" __o = logo; #line default #line hidden -#line 3 "TestFiles/Input/Basic.cshtml" +#line 3 "/TestFiles/Input/Basic.cshtml" __o = Html.Input("SomeKey"); #line default diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Basic.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Basic.mappings.txt index 026d5f28c9..fbda2bb64f 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Basic.mappings.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Basic.mappings.txt @@ -1,10 +1,10 @@ -Source Location: (13:0,13 [4] TestFiles/Input/Basic.cshtml) +Source Location: (13:0,13 [4] /TestFiles/Input/Basic.cshtml) |logo| -Generated Location: (2325:85,13 [4] ) +Generated Location: (2370:86,13 [4] ) |logo| -Source Location: (43:2,5 [21] TestFiles/Input/Basic.cshtml) +Source Location: (43:2,5 [21] /TestFiles/Input/Basic.cshtml) |Html.Input("SomeKey")| -Generated Location: (2409:90,6 [21] ) +Generated Location: (2455:91,6 [21] ) |Html.Input("SomeKey")| diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Inject.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Inject.cs index 996c103974..ecf30b9692 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Inject.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Inject.cs @@ -1,6 +1,7 @@ namespace AspNetCore { #line hidden + using TModel = global::System.Object; using System; using System.Threading.Tasks; #line 2 "" @@ -28,12 +29,12 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden -#line 1 "TestFiles/Input/Inject.cshtml" +#line 1 "/TestFiles/Input/Inject.cshtml" using MyNamespace; #line default #line hidden - public class TestFiles_Input_Inject_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_Inject_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Inject.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Inject.mappings.txt index 3763860553..556a812ae2 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Inject.mappings.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Inject.mappings.txt @@ -1,10 +1,10 @@ -Source Location: (28:1,8 [5] TestFiles/Input/Inject.cshtml) +Source Location: (28:1,8 [5] /TestFiles/Input/Inject.cshtml) |MyApp| -Generated Location: (2170:84,0 [5] ) +Generated Location: (2215:85,0 [5] ) |MyApp| -Source Location: (34:1,14 [14] TestFiles/Input/Inject.cshtml) +Source Location: (34:1,14 [14] /TestFiles/Input/Inject.cshtml) |MyPropertyName| -Generated Location: (2272:88,14 [14] ) +Generated Location: (2317:89,14 [14] ) |MyPropertyName| diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithModel.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithModel.cs index 3867c1a679..b1979dcad2 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithModel.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithModel.cs @@ -1,6 +1,7 @@ namespace AspNetCore { #line hidden + using TModel = MyModel; using System; using System.Threading.Tasks; #line 2 "" @@ -28,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_InjectWithModel_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_InjectWithModel_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithModel.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithModel.mappings.txt index deadf21aa1..b0f27acfc1 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithModel.mappings.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithModel.mappings.txt @@ -1,25 +1,25 @@ -Source Location: (7:0,7 [7] TestFiles/Input/InjectWithModel.cshtml) +Source Location: (7:0,7 [7] /TestFiles/Input/InjectWithModel.cshtml) |MyModel| -Generated Location: (2087:79,0 [7] ) +Generated Location: (2117:80,0 [7] ) |MyModel| -Source Location: (24:1,8 [5] TestFiles/Input/InjectWithModel.cshtml) +Source Location: (24:1,8 [5] /TestFiles/Input/InjectWithModel.cshtml) |MyApp| -Generated Location: (2177:83,0 [5] ) +Generated Location: (2207:84,0 [5] ) |MyApp| -Source Location: (30:1,14 [14] TestFiles/Input/InjectWithModel.cshtml) +Source Location: (30:1,14 [14] /TestFiles/Input/InjectWithModel.cshtml) |MyPropertyName| -Generated Location: (2279:87,14 [14] ) +Generated Location: (2309:88,14 [14] ) |MyPropertyName| -Source Location: (54:2,8 [17] TestFiles/Input/InjectWithModel.cshtml) +Source Location: (54:2,8 [17] /TestFiles/Input/InjectWithModel.cshtml) |MyService| -Generated Location: (2363:91,0 [17] ) +Generated Location: (2393:92,0 [17] ) |MyService| -Source Location: (72:2,26 [4] TestFiles/Input/InjectWithModel.cshtml) +Source Location: (72:2,26 [4] /TestFiles/Input/InjectWithModel.cshtml) |Html| -Generated Location: (2477:95,14 [4] ) +Generated Location: (2507:96,14 [4] ) |Html| diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithSemicolon.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithSemicolon.cs index d4b9eda535..d1ad589874 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithSemicolon.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithSemicolon.cs @@ -1,6 +1,7 @@ namespace AspNetCore { #line hidden + using TModel = MyModel; using System; using System.Threading.Tasks; #line 2 "" @@ -28,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_InjectWithSemicolon_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_InjectWithSemicolon_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithSemicolon.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithSemicolon.mappings.txt index 6787a4ff06..9736b49d92 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithSemicolon.mappings.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/InjectWithSemicolon.mappings.txt @@ -1,45 +1,45 @@ -Source Location: (7:0,7 [7] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (7:0,7 [7] /TestFiles/Input/InjectWithSemicolon.cshtml) |MyModel| -Generated Location: (2091:79,0 [7] ) +Generated Location: (2121:80,0 [7] ) |MyModel| -Source Location: (24:1,8 [5] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (24:1,8 [5] /TestFiles/Input/InjectWithSemicolon.cshtml) |MyApp| -Generated Location: (2181:83,0 [5] ) +Generated Location: (2211:84,0 [5] ) |MyApp| -Source Location: (30:1,14 [14] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (30:1,14 [14] /TestFiles/Input/InjectWithSemicolon.cshtml) |MyPropertyName| -Generated Location: (2283:87,14 [14] ) +Generated Location: (2313:88,14 [14] ) |MyPropertyName| -Source Location: (58:2,8 [17] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (58:2,8 [17] /TestFiles/Input/InjectWithSemicolon.cshtml) |MyService| -Generated Location: (2367:91,0 [17] ) +Generated Location: (2397:92,0 [17] ) |MyService| -Source Location: (76:2,26 [4] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (76:2,26 [4] /TestFiles/Input/InjectWithSemicolon.cshtml) |Html| -Generated Location: (2481:95,14 [4] ) +Generated Location: (2511:96,14 [4] ) |Html| -Source Location: (93:3,8 [5] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (93:3,8 [5] /TestFiles/Input/InjectWithSemicolon.cshtml) |MyApp| -Generated Location: (2555:99,0 [5] ) +Generated Location: (2585:100,0 [5] ) |MyApp| -Source Location: (99:3,14 [15] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (99:3,14 [15] /TestFiles/Input/InjectWithSemicolon.cshtml) |MyPropertyName2| -Generated Location: (2657:103,14 [15] ) +Generated Location: (2687:104,14 [15] ) |MyPropertyName2| -Source Location: (129:4,8 [17] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (129:4,8 [17] /TestFiles/Input/InjectWithSemicolon.cshtml) |MyService| -Generated Location: (2742:107,0 [17] ) +Generated Location: (2772:108,0 [17] ) |MyService| -Source Location: (147:4,26 [5] TestFiles/Input/InjectWithSemicolon.cshtml) +Source Location: (147:4,26 [5] /TestFiles/Input/InjectWithSemicolon.cshtml) |Html2| -Generated Location: (2856:111,14 [5] ) +Generated Location: (2886:112,14 [5] ) |Html2| diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Model.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Model.cs index 03c7d1df33..3acdecfc5d 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Model.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Model.cs @@ -1,6 +1,7 @@ namespace AspNetCore { #line hidden + using TModel = System.Collections.IEnumerable; using System; using System.Threading.Tasks; #line 2 "" @@ -28,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_Model_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_Model_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Model.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Model.mappings.txt index b7ac94f8ab..518a4ebcc4 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Model.mappings.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/Model.mappings.txt @@ -1,5 +1,5 @@ -Source Location: (7:0,7 [30] TestFiles/Input/Model.cshtml) +Source Location: (7:0,7 [30] /TestFiles/Input/Model.cshtml) |System.Collections.IEnumerable| -Generated Location: (2100:79,0 [30] ) +Generated Location: (2153:80,0 [30] ) |System.Collections.IEnumerable| diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/ModelExpressionTagHelper.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/ModelExpressionTagHelper.cs index 9fc0ca5d60..0a8f518b4f 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/ModelExpressionTagHelper.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/ModelExpressionTagHelper.cs @@ -1,6 +1,7 @@ namespace AspNetCore { #line hidden + using TModel = DateTime; using System; using System.Threading.Tasks; #line 2 "" @@ -28,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_ModelExpressionTagHelper_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_ModelExpressionTagHelper_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { @@ -92,13 +93,13 @@ System.Object __typeHelper = "Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTes public async override global::System.Threading.Tasks.Task ExecuteAsync() { __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = CreateTagHelper(); -#line 5 "TestFiles/Input/ModelExpressionTagHelper.cshtml" +#line 5 "/TestFiles/Input/ModelExpressionTagHelper.cshtml" __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Now); #line default #line hidden __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = CreateTagHelper(); -#line 6 "TestFiles/Input/ModelExpressionTagHelper.cshtml" +#line 6 "/TestFiles/Input/ModelExpressionTagHelper.cshtml" __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model); #line default diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/ModelExpressionTagHelper.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/ModelExpressionTagHelper.mappings.txt index 9811c02622..1b2e59d67b 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/ModelExpressionTagHelper.mappings.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/ModelExpressionTagHelper.mappings.txt @@ -1,20 +1,20 @@ -Source Location: (7:0,7 [8] TestFiles/Input/ModelExpressionTagHelper.cshtml) +Source Location: (7:0,7 [8] /TestFiles/Input/ModelExpressionTagHelper.cshtml) |DateTime| -Generated Location: (2097:79,0 [8] ) +Generated Location: (2128:80,0 [8] ) |DateTime| -Source Location: (33:2,14 [108] TestFiles/Input/ModelExpressionTagHelper.cshtml) +Source Location: (33:2,14 [108] /TestFiles/Input/ModelExpressionTagHelper.cshtml) |Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper, Microsoft.AspNetCore.Mvc.Razor.Extensions.Test| -Generated Location: (2218:83,30 [108] ) +Generated Location: (2249:84,30 [108] ) |Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper, Microsoft.AspNetCore.Mvc.Razor.Extensions.Test| -Source Location: (162:4,17 [3] TestFiles/Input/ModelExpressionTagHelper.cshtml) +Source Location: (162:4,17 [3] /TestFiles/Input/ModelExpressionTagHelper.cshtml) |Now| -Generated Location: (3112:95,144 [3] ) +Generated Location: (3144:96,144 [3] ) |Now| -Source Location: (189:5,18 [5] TestFiles/Input/ModelExpressionTagHelper.cshtml) +Source Location: (189:5,18 [5] /TestFiles/Input/ModelExpressionTagHelper.cshtml) |Model| -Generated Location: (3512:101,136 [5] ) +Generated Location: (3545:102,136 [5] ) |Model| diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/MultipleModels.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/MultipleModels.cs index 6192a205c8..bd68ab404a 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/MultipleModels.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/MultipleModels.cs @@ -1,6 +1,7 @@ namespace AspNetCore { #line hidden + using TModel = System.Collections.IEnumerable; using System; using System.Threading.Tasks; #line 2 "" @@ -28,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_MultipleModels_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_MultipleModels_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/MultipleModels.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/MultipleModels.mappings.txt index 9cc2ab4c93..7a28c7cbcd 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/MultipleModels.mappings.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/MultipleModels.mappings.txt @@ -1,10 +1,10 @@ -Source Location: (7:0,7 [21] TestFiles/Input/MultipleModels.cshtml) +Source Location: (7:0,7 [21] /TestFiles/Input/MultipleModels.cshtml) |ThisShouldBeGenerated| -Generated Location: (2109:79,0 [21] ) +Generated Location: (2162:80,0 [21] ) |ThisShouldBeGenerated| -Source Location: (37:1,7 [30] TestFiles/Input/MultipleModels.cshtml) +Source Location: (37:1,7 [30] /TestFiles/Input/MultipleModels.cshtml) |System.Collections.IEnumerable| -Generated Location: (2213:83,0 [30] ) +Generated Location: (2266:84,0 [30] ) |System.Collections.IEnumerable| diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/_ViewImports.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/_ViewImports.cs index af5b48523f..fd22e76019 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/_ViewImports.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/_ViewImports.cs @@ -1,6 +1,7 @@ namespace AspNetCore { #line hidden + using TModel = global::System.Object; using System; using System.Threading.Tasks; #line 2 "" @@ -28,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input__ViewImports_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input__ViewImports_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/_ViewImports.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/_ViewImports.mappings.txt index 20510ff732..040ad30dd1 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/_ViewImports.mappings.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/DesignTime/_ViewImports.mappings.txt @@ -1,10 +1,10 @@ -Source Location: (8:0,8 [19] TestFiles/Input/_ViewImports.cshtml) +Source Location: (8:0,8 [19] /TestFiles/Input/_ViewImports.cshtml) |IHtmlHelper| -Generated Location: (2084:79,0 [19] ) +Generated Location: (2128:80,0 [19] ) |IHtmlHelper| -Source Location: (28:0,28 [5] TestFiles/Input/_ViewImports.cshtml) +Source Location: (28:0,28 [5] /TestFiles/Input/_ViewImports.cshtml) |Model| -Generated Location: (2200:83,14 [5] ) +Generated Location: (2244:84,14 [5] ) |Model| diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Basic.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Basic.cs index 70fd7eb9de..368a66155d 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Basic.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Basic.cs @@ -1,4 +1,4 @@ -#pragma checksum "TestFiles/Input/Basic.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "54a70ff4c6d27ac6cdc6725cb6bab12012015729" +#pragma checksum "/TestFiles/Input/Basic.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "54a70ff4c6d27ac6cdc6725cb6bab12012015729" namespace AspNetCore { #line hidden @@ -29,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_Basic_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_Basic_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() @@ -38,7 +38,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; WriteLiteral("\r\n Hello world\r\n "); EndContext(); BeginContext(43, 21, false); -#line 3 "TestFiles/Input/Basic.cshtml" +#line 3 "/TestFiles/Input/Basic.cshtml" Write(Html.Input("SomeKey")); #line default diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Inject.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Inject.cs index 36f55f92f2..688b7e4447 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Inject.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Inject.cs @@ -1,4 +1,4 @@ -#pragma checksum "TestFiles/Input/Inject.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "225760ec3beca02a80469066fab66433e90ddc2e" +#pragma checksum "/TestFiles/Input/Inject.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "225760ec3beca02a80469066fab66433e90ddc2e" namespace AspNetCore { #line hidden @@ -29,12 +29,12 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden -#line 1 "TestFiles/Input/Inject.cshtml" +#line 1 "/TestFiles/Input/Inject.cshtml" using MyNamespace; #line default #line hidden - public class TestFiles_Input_Inject_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_Inject_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/InjectWithModel.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/InjectWithModel.cs index d965f730b4..2e3bcbd6d4 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/InjectWithModel.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/InjectWithModel.cs @@ -1,4 +1,4 @@ -#pragma checksum "TestFiles/Input/InjectWithModel.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1f010500f93116162444110956e512df61642f4e" +#pragma checksum "/TestFiles/Input/InjectWithModel.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1f010500f93116162444110956e512df61642f4e" namespace AspNetCore { #line hidden @@ -29,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_InjectWithModel_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_InjectWithModel_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/InjectWithSemicolon.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/InjectWithSemicolon.cs index 6959379f8d..16c43a5b6e 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/InjectWithSemicolon.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/InjectWithSemicolon.cs @@ -1,4 +1,4 @@ -#pragma checksum "TestFiles/Input/InjectWithSemicolon.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fc807ec0dc76610bdca62f482fefd7f584348df9" +#pragma checksum "/TestFiles/Input/InjectWithSemicolon.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fc807ec0dc76610bdca62f482fefd7f584348df9" namespace AspNetCore { #line hidden @@ -29,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_InjectWithSemicolon_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_InjectWithSemicolon_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Model.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Model.cs index 984b0af903..8bdeb7a1a7 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Model.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/Model.cs @@ -1,4 +1,4 @@ -#pragma checksum "TestFiles/Input/Model.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "31c5b047a450ac9f6dc4116626667d26bfb657ba" +#pragma checksum "/TestFiles/Input/Model.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "31c5b047a450ac9f6dc4116626667d26bfb657ba" namespace AspNetCore { #line hidden @@ -29,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_Model_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_Model_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/ModelExpressionTagHelper.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/ModelExpressionTagHelper.cs index 1f84e259a9..5f4495e921 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/ModelExpressionTagHelper.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/ModelExpressionTagHelper.cs @@ -1,4 +1,4 @@ -#pragma checksum "TestFiles/Input/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "55aa7d9113d1666f0c8e05c6ad9b86fc8464b277" +#pragma checksum "/TestFiles/Input/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "55aa7d9113d1666f0c8e05c6ad9b86fc8464b277" namespace AspNetCore { #line hidden @@ -29,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input_ModelExpressionTagHelper_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input_ModelExpressionTagHelper_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #line hidden #pragma warning disable 0414 @@ -64,7 +64,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; ); __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = CreateTagHelper(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper); -#line 5 "TestFiles/Input/ModelExpressionTagHelper.cshtml" +#line 5 "/TestFiles/Input/ModelExpressionTagHelper.cshtml" __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Now); #line default @@ -87,7 +87,7 @@ __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpres ); __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = CreateTagHelper(); __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper); -#line 6 "TestFiles/Input/ModelExpressionTagHelper.cshtml" +#line 6 "/TestFiles/Input/ModelExpressionTagHelper.cshtml" __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model); #line default diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/_ViewImports.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/_ViewImports.cs index 710a5c19d7..6e5037205b 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/_ViewImports.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/Output/Runtime/_ViewImports.cs @@ -1,4 +1,4 @@ -#pragma checksum "TestFiles/Input/_ViewImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "778b41f9406fcda776cc3f1bf093f3b21956e582" +#pragma checksum "/TestFiles/Input/_ViewImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "778b41f9406fcda776cc3f1bf093f3b21956e582" namespace AspNetCore { #line hidden @@ -29,7 +29,7 @@ using Microsoft.AspNetCore.Mvc.ViewFeatures; #line default #line hidden - public class TestFiles_Input__ViewImports_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage + public class _TestFiles_Input__ViewImports_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync()