[NUI] Change csproj file to make this sample run on Ubuntu, tizen-emul and TV (#3950)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 15 Feb 2022 10:53:00 +0000 (19:53 +0900)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Wed, 16 Feb 2022 08:40:57 +0000 (00:40 -0800)
test/Tizen.NUI.StyleGuide/.vscode/launch.json
test/Tizen.NUI.StyleGuide/Tizen.NUI.StyleGuide.csproj
test/Tizen.NUI.StyleGuide/tizen-manifest.xml

index 499affb..490bfb7 100644 (file)
@@ -8,32 +8,15 @@
             "name": ".NET Core Launch (console)",
             "type": "coreclr",
             "request": "launch",
-            "WARNING01": "*********************************************************************************",
-            "WARNING02": "The C# extension was unable to automatically decode projects in the current",
-            "WARNING03": "workspace to create a runnable launch.json file. A template launch.json file has",
-            "WARNING04": "been created as a placeholder.",
-            "WARNING05": "",
-            "WARNING06": "If OmniSharp is currently unable to load your project, you can attempt to resolve",
-            "WARNING07": "this by restoring any missing project dependencies (example: run 'dotnet restore')",
-            "WARNING08": "and by fixing any reported errors from building the projects in your workspace.",
-            "WARNING09": "If this allows OmniSharp to now load your project then --",
-            "WARNING10": "  * Delete this file",
-            "WARNING11": "  * Open the Visual Studio Code command palette (View->Command Palette)",
-            "WARNING12": "  * run the command: '.NET: Generate Assets for Build and Debug'.",
-            "WARNING13": "",
-            "WARNING14": "If your project requires a more complex launch configuration, you may wish to delete",
-            "WARNING15": "this configuration and pick a different template using the 'Add Configuration...'",
-            "WARNING16": "button at the bottom of this file.",
-            "WARNING17": "*********************************************************************************",
             "preLaunchTask": "build",
             "program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/Tizen.NUI.StyleGuide.dll",
             "args": [],
             "env": {
-                "DESKTOP_PREFIX":"/home/ssong2best/dali-env/opt",
-                "PATH":"/home/ssong2best/dali-env/opt/bin:$PATH",
-                "LD_LIBRARY_PATH":"/home/ssong2best/dali-env/opt/lib:$LD_LIBRARY_PATH",
-                "INCLUDEDIR":"/home/ssong2best/dali-env/opt/include",
-                "PKG_CONFIG_PATH":"/home/ssong2best/dali-env/opt/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig",
+                "DESKTOP_PREFIX":"/home/{should be fixed}/dali-env/opt",
+                "PATH":"/home/{should be fixed}/dali-env/opt/bin:$PATH",
+                "LD_LIBRARY_PATH":"/home/{should be fixed}/dali-env/opt/lib:$LD_LIBRARY_PATH",
+                "INCLUDEDIR":"/home/{should be fixed}/dali-env/opt/include",
+                "PKG_CONFIG_PATH":"/home/{should be fixed}/dali-env/opt/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig",
                 "DOTNET_CLI_TELEMETRY_OPTOUT":"1",
                 "DALI_WINDOW_WIDTH":"720",
                 "DALI_WINDOW_HEIGHT":"1080",
index 6c607c5..1aab636 100755 (executable)
@@ -1,4 +1,5 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<!-- This is for Ubuntu-Backend build. -->
+<Project Sdk="Microsoft.NET.Sdk">
 
     <PropertyGroup>
         <OutputType>Exe</OutputType>
     </ItemGroup>
 
 </Project>
+
+<!-- This is for TV target build.
+Tested in TIZEN-ONEMAIN-NikeM-RELEASE_20220215.6 image -->
+<!--Project Sdk="Tizen.NET.Sdk/1.1.6">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>netstandard2.0</TargetFramework>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugType>portable</DebugType>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>None</DebugType>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <Folder Include="lib\" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <PackageReference Include="Tizen.NET" Version="9.0.0.16837" />
+    <PackageReference Include="Tizen.NET.Sdk" Version="1.0.9" />
+  </ItemGroup>
+
+</Project-->
+
+<!-- This is for tizen emulator build.
+Tested in tizen-unified_20220215.2_mobile-emulator32-wayland image -->
+<!--Project Sdk="Tizen.NET.Sdk/1.1.6">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>netstandard2.0</TargetFramework>
+  </PropertyGroup>
+
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugType>portable</DebugType>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>None</DebugType>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <Folder Include="lib\" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <PackageReference Include="Tizen.NET" Version="10.0.0.16980" />
+  </ItemGroup>
+
+</Project!-->
index 28de3c8..9030bfc 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="6" package="org.tizen.example.Tizen.NUI.StyleGuide" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="6.5" package="org.tizen.example.Tizen.NUI.StyleGuide" version="1.0.0">
   <profile name="common" />
   <ui-application appid="org.tizen.example.Tizen.NUI.StyleGuide"
                                        exec="Tizen.NUI.StyleGuide.dll"