[NUI] Fix argument issue when launch application on ubuntu (#2827)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Mon, 5 Apr 2021 23:04:43 +0000 (08:04 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Tue, 20 Apr 2021 06:13:00 +0000 (15:13 +0900)
args[0] value is this.
 ->Tizen.NUI, Version=4.0.0.0, Culture=neutral, PublicKeyToken=eba370b203a2e242

So can't set using argument value.
 ex) dotnet run --width 100 --height --100

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs

index 0cc935c..4fc4d38 100755 (executable)
@@ -144,7 +144,7 @@ namespace Tizen.NUI
             args[0] = Tizen.Applications.Application.Current.ApplicationInfo.ExecutablePath;
             if (string.IsNullOrEmpty(args[0]))
             {
-                args[0] = this.GetType().Assembly.FullName;
+                args[0] = this.GetType().Assembly.FullName.Replace(" ", "");
             }
 
             if (windowRectangle != null)