From 9a7de2b0d230a0fef15194b5f74ae9dde224b089 Mon Sep 17 00:00:00 2001 From: Fang Xiaohui Date: Thu, 24 Mar 2022 10:45:00 +0800 Subject: [PATCH] [XamlBuild] Support use root node inheirt nest type --- src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs b/src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs index d725303..49e7efd 100755 --- a/src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs +++ b/src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs @@ -524,6 +524,10 @@ namespace Tizen.NUI.Xaml.Build.Tasks Func getNamespaceOfPrefix = null) { var type = xmlType.Name; + if (type.Contains("-")) + { + type = type.Replace('-', '.'); + } var ns = GetClrNamespace(xmlType.NamespaceUri, xmlType.Name); if (ns != null) type = $"{ns}.{type}"; -- 2.7.4