Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 920358a

Browse files
author
N. Taylor Mullen
committed
1 parent f7a1717 commit 920358a

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/Microsoft.AspNet.Tooling.Razor/RazorPlugin.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ public bool ProcessMessage(JObject data, IAssemblyLoadContext assemblyLoadContex
7272
messageData.SourceLocation,
7373
errorSink);
7474
var tagHelperDescriptors = tagHelperTypes.SelectMany(
75-
type => TagHelperDescriptorFactory.CreateDescriptors(assemblyName, type, errorSink));
75+
type => TagHelperDescriptorFactory.CreateDescriptors(
76+
assemblyName,
77+
type,
78+
designTime: true,
79+
errorSink: errorSink));
7680

7781
var responseMessage = new ResolveTagHelperDescriptorsMessage(
7882
new ResolveTagHelperDescriptorsResponseData

test/Microsoft.AspNet.Tooling.Razor.Tests/RazorPluginTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public class RazorPluginTest
2929
CustomTagHelperType.FullName,
3030
CustomTagHelperAssembly,
3131
attributes: new TagHelperAttributeDescriptor[0],
32-
requiredAttributes: new string[0]);
32+
requiredAttributes: new string[0],
33+
usageDescriptor: null);
3334

3435
[Fact]
3536
public void ProcessMessage_ThrowsWhenNoMessageType()

0 commit comments

Comments
 (0)