question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debug start fails for Tizen App

See original GitHub issue

Description

I would like to ask about 2 issues related to Tizen framework.

  1. No Tizen target devices are found on Visual Studio
  2. Deploy failed for Tizen

No Tizen target devices are Found

On Visual Studio, Tizen target devices or emulators are not targeted when net6.0-tizen target framework is selected.

  • In case of Android
  • In case of Tizen (It just shows Windows Machine)

Tizen target devices are shown only when net6.0-tizen is coded at the very first target framework like below. However, in this case no other target devices are selected.

<TargetFrameworks>net6.0-tizen;net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>

Deploy failed for Tizen

When I tried to do Start without debugging(Ctrl + F5) It fails with appxrecipe file does not exist. It seems like a similar issue occured to windows target framework(https://github.com/dotnet/maui/issues/2493). The detailed log is following

Starting local deployment...
Deploy: START
DeployAsync: START
Reading package recipe file "C:\Users\jh5.cho\source\repos\MauiApp4\MauiApp4\bin\Debug\net6.0-tizen\tizen-x86\MauiApp4.build.appxrecipe"...
DEP1700: The recipe file "C:\Users\jh5.cho\source\repos\MauiApp4\MauiApp4\bin\Debug\net6.0-tizen\tizen-x86\MauiApp4.build.appxrecipe" does not exist. You may need to build your project.
	DeploymentSucceeded = False
	DeploymentError = Err_Recipe_DoesNotExist
	DeploymentUserError = False
	DeploymentHRESULT = 2147942402
	HasSharedCode = False
	Target.Id = 256
	ProjectGuid = {6ede1560-7c5a-42a9-8e6a-cdc97d06616f}
	Project.TargetPlatformVersion = 7.0
Deleting file "vs.appxrecipe" from layout...
DeployAsync: END (Failure, 0:00:00.103)
Deploy: END (Failure, 0:00:00.171)

Steps to Reproduce

  1. Install Visual Studio Tools for Tizen on Visual Studio 2022 Preview and install Tizen workload.(https://github.com/Samsung/Tizen.NET/wiki/Installing-Tizen-.NET-Workload)
  2. Create Maui template application and uncomment net6.0-tizen TargetFramework at csproj like below.
<PropertyGroup>
		<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
		<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
		<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
		<TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks>  <-- uncommend this line.
  1. Select Framework on the menu and see how the devices are detected.

Version with bug

6.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Other (Tizen, Linux, etc. not supported by Microsoft directly)

Affected platform versions

Tizen

Did you find any workaround?

No workaround.

Relevant log output

Following log is shown when the app is deployed.

Starting local deployment...
Deploy: START
DeployAsync: START
Reading package recipe file "C:\Users\jh5.cho\source\repos\MauiApp4\MauiApp4\bin\Debug\net6.0-tizen\tizen-x86\MauiApp4.build.appxrecipe"...
DEP1700: The recipe file "C:\Users\jh5.cho\source\repos\MauiApp4\MauiApp4\bin\Debug\net6.0-tizen\tizen-x86\MauiApp4.build.appxrecipe" does not exist. You may need to build your project.
	DeploymentSucceeded = False
	DeploymentError = Err_Recipe_DoesNotExist
	DeploymentUserError = False
	DeploymentHRESULT = 2147942402
	HasSharedCode = False
	Target.Id = 256
	ProjectGuid = {6ede1560-7c5a-42a9-8e6a-cdc97d06616f}
	Project.TargetPlatformVersion = 7.0
Deleting file "vs.appxrecipe" from layout...
DeployAsync: END (Failure, 0:00:00.103)
Deploy: END (Failure, 0:00:00.171)

DevOps Issues

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
talebicommented, Jul 21, 2022

@veikkoeeva when installing tizen workload, before doing step 3 in here, make sure you start VS as admin. it is not mentioned in the docs.

1reaction
Eiloncommented, Jan 20, 2023

@mattleibow - any idea if this is on the Tizen radar? In Teams or elsewhere?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running and Debugging Applications
In the Tizen Studio menu, go to Run > Debug As > Tizen Web Application. On the Tizen Studio toolbar, click Debug. The...
Read more >
Can't use debugger in Samsung tizen TV 2016
We have an angular web application that works perfectly fine on all TV models except 2016 model. While trying to debug the app...
Read more >
Tizen .NET and debug in watch failed!
I'm building an app for smartwatch with Tizen .NET extension and try to debug on my watch Samsung Galaxy II , i have...
Read more >
Troubleshoot Tizen app issues (Web Player)
Right-click on the project. Select Debug As >Tizen Web Application. A web inspector will appear. Possible Issues. The ...
Read more >
How to connect to Samsung TV and start Debug (using ...
1- Add Static IP to the TV connections · 2-Enable Developer Mode to the TV by Entering Apps section then click numbers 1...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found