Single Project #17844
-
Hi folks, In April UNO Project announced Single Project (https://platform.uno/blog/the-first-and-only-true-single-project-for-mobile-web-desktop-and-embedded-in-net/). MAUI does the same (although MAUI is a joke). Is there something like that in Avalonia? Is it even in the roadmap? Edit: I have found it: https://x.com/AvaloniaUI/status/1857310602923765833 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I've been using it with XPF for ~6 months, so I'm 99.9% we can support it in vanilla Avalonia. We'd just need to update the project templates. I'll leave it with @maxkatz6 to decide if we want to support it officially. |
Beta Was this translation helpful? Give feedback.
For implementation details you can see this PR #9613
To enable this, you need to add
<AvaloniaSingleProject>true</AvaloniaSingleProject>
to your project, add all necessary target frameworks (that are supported by the .NET SDK at least) and then enable package references conditionally: