Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit 46c6ee3

Browse files
committed
- Updated `MvcRazorHost` to configure `Type` full names. - Updated code generation tests.
1 parent d361c3a commit 46c6ee3

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Microsoft.AspNet.Mvc.Razor.Host/MvcRazorHost.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ internal MvcRazorHost(IChunkTreeCache chunkTreeCache, RazorPathNormalizer pathNo
9595
ScopeManagerBeginMethodName = nameof(TagHelperScopeManager.Begin),
9696
ScopeManagerEndMethodName = nameof(TagHelperScopeManager.End),
9797

98-
TagHelperContentTypeName = nameof(TagHelperContent),
98+
TagHelperContentTypeName = typeof(TagHelperContent).FullName,
9999

100100
// Can't use nameof because RazorPage is not accessible here.
101101
CreateTagHelperMethodName = "CreateTagHelper",

test/Microsoft.AspNet.Mvc.Razor.Host.Test/TestFiles/Output/Runtime/ModelExpressionTagHelper.cs

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#pragma checksum "TestFiles/Input/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fd1207a6d248f0e3aeabecaa338dca0ffb99d10d"
22
namespace Asp
33
{
4-
using Microsoft.AspNet.Razor.TagHelpers;
5-
using Microsoft.AspNet.Razor.Runtime.TagHelpers;
64
using System;
75
using System.Linq;
86
using System.Collections.Generic;
@@ -14,7 +12,7 @@ public class ASPV_TestFiles_Input_ModelExpressionTagHelper_cshtml : Microsoft.As
1412
{
1513
#line hidden
1614
#pragma warning disable 0414
17-
private TagHelperContent __tagHelperStringValueBuffer = null;
15+
private Microsoft.AspNet.Razor.TagHelpers.TagHelperContent __tagHelperStringValueBuffer = null;
1816
#pragma warning restore 0414
1917
private Microsoft.AspNet.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext = null;
2018
private Microsoft.AspNet.Razor.Runtime.TagHelpers.TagHelperRunner __tagHelperRunner = null;
@@ -43,7 +41,7 @@ public override async Task ExecuteAsync()
4341
BeginContext(120, 2, true);
4442
WriteLiteral("\r\n");
4543
EndContext();
46-
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input-test", TagMode.SelfClosing, "test", async() => {
44+
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input-test", Microsoft.AspNet.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
4745
}
4846
, StartTagHelperWritingScope, EndTagHelperWritingScope);
4947
__Microsoft_AspNet_Mvc_Razor_InputTestTagHelper = CreateTagHelper<Microsoft.AspNet.Mvc.Razor.InputTestTagHelper>();
@@ -62,7 +60,7 @@ public override async Task ExecuteAsync()
6260
BeginContext(146, 2, true);
6361
WriteLiteral("\r\n");
6462
EndContext();
65-
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input-test", TagMode.SelfClosing, "test", async() => {
63+
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input-test", Microsoft.AspNet.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
6664
}
6765
, StartTagHelperWritingScope, EndTagHelperWritingScope);
6866
__Microsoft_AspNet_Mvc_Razor_InputTestTagHelper = CreateTagHelper<Microsoft.AspNet.Mvc.Razor.InputTestTagHelper>();

0 commit comments

Comments
 (0)