[XamlBuild] Support use root node inheirt nest type
authorFang Xiaohui <xiaohui.fang@samsung.com>
Thu, 24 Mar 2022 02:45:00 +0000 (10:45 +0800)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Wed, 20 Apr 2022 08:38:08 +0000 (17:38 +0900)
src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs

index d725303..49e7efd 100755 (executable)
@@ -524,6 +524,10 @@ namespace Tizen.NUI.Xaml.Build.Tasks
             Func<string, string> 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}";