Question
I am new to Tizen development and tried using Visual Studio 2019. While the installation and basic project creation worked fine, I encountered issues with NuGet dependencies. Specifically, the IDE couldn't resolve using System; statements. Interestingly, Xamarin projects worked without any issues. After multiple attempts, I switched to Visual Studio 2017, where everything worked smoothly. Has anyone else faced similar issues with VS2019?
Answer
Problem Understanding
The issue arises due to changes in the Visual Studio 2019 (version 16.1 or higher) project system, which affects Tizen projects using older versions of Tizen.NET.Sdk. This results in errors like NETSDK1013: The TargetFramework value 'tizen40' was not recognized.
Solution Methods
-
Update
Tizen.NET.Sdkto Version 1.0.3
Modify your.csprojfile to useTizen.NET.Sdkas a custom SDK:<Project Sdk="Tizen.NET.Sdk/1.0.3"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>tizen40</TargetFramework> </PropertyGroup> </Project> -
Manual Workaround for Older Projects
For projects still usingMicrosoft.NET.Sdk, add the following lines to your.csprojfile:<PropertyGroup> <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> </PropertyGroup> -
Update Visual Studio Tools for Tizen
Ensure you have the latest version of the Tizen extension (2.6.0.0 or higher) installed in Visual Studio 2019. This version resolves the compatibility issues.
Additional Tips
- Version Compatibility: Tizen.NET 5.0.0 supports both
tizen40andtizen50target frameworks, unlike Tizen.NET 4.0.0, which only supportstizen40. - Documentation: Refer to the official documentation for more details on using
Tizen.NET.Sdk.