From 07fcf46959a1b09756f326d8a29bad3ccb7bcc20 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Tue, 28 Jan 2020 17:17:47 -0800 Subject: [PATCH] Supply the `PropertyName` for Context TagHelper results. (dotnet/aspnetcore-tooling#1545) Supply the PropertyName for Context TagHelper results \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/d5b77f46f96444b5e66f705acd99d5c6bb870c0f --- .../src/ComponentTagHelperDescriptorProvider.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Razor/Microsoft.CodeAnalysis.Razor/src/ComponentTagHelperDescriptorProvider.cs b/src/Razor/Microsoft.CodeAnalysis.Razor/src/ComponentTagHelperDescriptorProvider.cs index ebc1947ca7..75569b2b3c 100644 --- a/src/Razor/Microsoft.CodeAnalysis.Razor/src/ComponentTagHelperDescriptorProvider.cs +++ b/src/Razor/Microsoft.CodeAnalysis.Razor/src/ComponentTagHelperDescriptorProvider.cs @@ -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) {