Languages

Menu
Sites
Language
NUI XAML on Tizen 5.0

I've followed the Getting Started guide for NUI with XAML for Tizen version 5.0 here: docs.tizen.org/application/dotnet/guides/nui/xaml/get-started-xaml/#create-solution-using-tizen-version-50-and-lower. No matter what, though, I cannot get the code to compile and run. I've set it up as exactly as I can to the guide, but I get errors about missing ContentPage and TextLabel components, and it complains that InitializeComponent is not a valid function. Can someone tell me what I'm doing wrong?

My code is laid out like the attached image

And my project file looks like this:

 

<Project Sdk="Tizen.NET.Sdk/1.1.7">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>tizen50</TargetFramework>
      <AssemblyName>XamlSamples</AssemblyName>
  </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>
    <None Update="res\layout\1920x1080\XamlSamplesPage.xaml">
      <Generator>MSBuild:Compile</Generator>
    </None>
  </ItemGroup>

</Project>

 

Edited by: Ian Hunter on 14 May, 2022