Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preview and autocomplete only work if you have a desktop application #455

Open
robertorp opened this issue Mar 13, 2024 · 3 comments
Open
Labels

Comments

@robertorp
Copy link

Describe the bug

Preview and autocomplete only work if you have a desktop application

To Reproduce

Creating a project only with Android and iOS, the preview will stop working and so will autocomplete.

Expected behavior

At least xmls tag autocomplete works

Avalonia version

11.0.2 or >

OS

Android, iOS

Additional context

repository example: https://github.com/robertorp/AvaloniaApplication9

@robertorp robertorp added the bug label Mar 13, 2024
@MikeCodesDotNET MikeCodesDotNET transferred this issue from AvaloniaUI/Avalonia Mar 14, 2024
@maxkatz6
Copy link
Member

By design. You need a desktop project.

@maxkatz6 maxkatz6 added wontfix and removed bug labels Mar 25, 2024
@marcosgerene
Copy link

@maxkatz6

Even if project is focused on Mobile?

Can you give more details why it is so tied up?

@maxkatz6
Copy link
Member

@marcosgerene because project is executed by the previewer with "in-app" windowing system. You can't easily run iOS or Android app on desktop embedding it inside of IDE.

Even if we hacked up Avalonia mobile backends inside of the previewer, .NET SDK will still expect these targets to run on mobile.

Another solution would be to create a fake desktop project. But it will have a high chance of breaking custom app builder configuration and cause unexpected bugs. Having Desktop project kept and maintained by the user is much more reliable.

Not to mention, even if you don't intend to release desktop version, it's always useful to have desktop project for debugging and profiling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants