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

way to make this work with the multi-platform avalonia template #178

Open
CodeDiseaseDev opened this issue Jan 12, 2025 · 2 comments
Open

Comments

@CodeDiseaseDev
Copy link

theres no way to add the .Register() function to the main project
image
only the projects that build for different platforms contain a main() function

@mikegoatly
Copy link

Try adding the call to Register just before AvaloniaXamlLoader.Load(this);. I don't know if that's the correct approach, but it's been working ok for me.

@just-seba
Copy link
Member

I'll update the README soon to cover both cases.

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

No branches or pull requests

3 participants