unoplatform / uno.extensions

Libraries to ease common developer tasks associated with building multi-platform mobile, desktop and web applications using Uno Platform or WinAppSDK.
https://platform.uno/
Other
75 stars 47 forks source link

New solution from unoapp-extensions doesn't show Android emulators #1106

Closed ttustonic closed 1 year ago

ttustonic commented 1 year ago

Current behavior

New solution created using unoapp-extension template doesn't show a list of installed Android emulators. ext

Solutions created from Visual studio new Uno Platform App or from unoapp template look fine uno

Extensions app runs fine in first installed Android emulator, but it can't be changed.

Xamarin Diagnostics log is the same for both projects, and it can find device(s): [I:]: Tracking android devices stopped [I:]: Tracking android devices started [D:]: Tracking avd started [D:]: ANDROID_AVD_HOME found: E:\Android\avd [D:]: avd watcher *.ini path: 'E:\Android\avd' [D:]: TrackDeviceTask got: emulator-5554 device [I:]: Got new device list from adb with 1 devices [D:RunShellCommand]: emulator-5554 getprop [D:]: avd watcher: got device list from avd with 1 devices

Expected behavior

It should look and work the same as the project from unoapp template

How to reproduce it (as minimally and precisely as possible)

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

Visual Studio:

Relevant plugins:

Anything else we need to know?

ExtTest.zip

nickrandolph commented 1 year ago

Which version of the unoapp-extensions template are you using? If possible can you update to the latest dev version and give that a go

ttustonic commented 1 year ago

Yes, it looks ok with version 2.3.0-dev.584. Btw, I like the new options for the template. Thanks, Tom

ttustonic commented 1 year ago

Is there a way to fix an old project, built with template 2.2.0? I tried to compare .sln and .csproj files, but couldn't find the cause..._

nickrandolph commented 1 year ago

For an old project I would probably compare it to a new project created with the stable unoapp template (get the 4.6.x version from here https://www.nuget.org/packages/Uno.ProjectTemplates.Dotnet/4.6.41). You should be able to look at the mobile project and compare imports/properties

Uno.ProjectTemplates.Dotnet 4.6.41
Package Description