Supply the `PropertyName` for Context TagHelper results. (dotnet/aspnetcore-tooling#1545)

Supply the PropertyName for Context TagHelper results
\n\nCommit migrated from d5b77f46f9
This commit is contained in:
Ryan Brandenburg 2020-01-28 17:17:47 -08:00 committed by GitHub
parent 3dd1427ad8
commit 07fcf46959
1 changed files with 1 additions and 0 deletions

View File

@ -301,6 +301,7 @@ namespace Microsoft.CodeAnalysis.Razor
b.Name = ComponentMetadata.ChildContent.ParameterAttributeName;
b.TypeName = typeof(string).FullName;
b.Metadata.Add(ComponentMetadata.Component.ChildContentParameterNameKey, bool.TrueString);
b.Metadata.Add(TagHelperMetadata.Common.PropertyName, b.Name);
if (childContentName == null)
{