[XamlBuild] Fix internal class generate error
authorXianbing Teng <xb.teng@samsung.com>
Wed, 16 Mar 2022 09:07:34 +0000 (17:07 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 17 Mar 2022 06:40:14 +0000 (15:40 +0900)
pkg/Tizen.NET.API9/xamlbuild/Tizen.NUI.XamlBuild.dll
src/Tizen.NUI.XamlBuild/src/public/XamlBuild/XamlGenerator.cs

index 6e22191..c1b602b 100644 (file)
Binary files a/pkg/Tizen.NET.API9/xamlbuild/Tizen.NUI.XamlBuild.dll and b/pkg/Tizen.NET.API9/xamlbuild/Tizen.NUI.XamlBuild.dll differ
index 2e37cea..5dcbbe4 100755 (executable)
@@ -19,6 +19,7 @@ using System.CodeDom;
 using System.CodeDom.Compiler;
 using System.Collections.Generic;
 using System.IO;
+using System.Linq;
 using System.Reflection;
 using System.Xml;
 using Microsoft.Build.Framework;
@@ -369,6 +370,10 @@ namespace Tizen.NUI.Xaml.Build.Tasks
             initcomp.Statements.Add(assignEXamlObject);
 
             foreach (var namedField in NamedFields) {
+                if(namedField.Type.BaseType.Contains("-"))
+                {
+                    namedField.Type.BaseType = namedField.Type.BaseType.Replace("-", ".");
+                }
                 declType.Members.Add(namedField);
 
                 var find_invoke = new CodeMethodInvokeExpression(