Why is .NET MAUI platform specific XAML code compiled by .net?
I created platform specific XAML code in a single-project .NET 8 MAUI app.
Unit testing with .NET MAUI
I have a single-project MAUI app targeting ‘pure’ .net, .net-android and .net-ios. Furthermore, I have a Unit-test project, that targets ‘pure’ .net. The only reason for targeting .net in the single-project MAUI app, is to be able to run the unit tests against the project. The unit-test project is testing ViewModels and Services only, no UI.
MAUI shared project unit testing
I have a single-project MAUI app targeting ‘pure’ .net, .net-android and .net-ios. Furthermore, I have a Unit-test project, that targets ‘pure’ .net. The only reason for targeting .net in the single-project MAUI app, is to be able to run the unit tests against the project. The unit-test project is testing ViewModels and Services only, no UI.