dotnet / maui-samples

Samples for .NET Multi-Platform App UI (.NET MAUI)
https://dot.net/maui
MIT License
3.15k stars 1.28k forks source link

BugSweeper #446

Closed davidbritch closed 8 months ago

davidbritch commented 8 months ago

Fixes #445

arseniigorkin commented 8 months ago

Hi! It cannot be run/built as it uses MAUI Controls 8.0.7 which makes unknown conflicts with something and makes MauiUIApplicationDelegate not found.

arseniigorkin commented 8 months ago
Снимок экрана 2024-02-28 в 02 41 29
jfversluis commented 8 months ago

Looks like you might be hitting this: https://github.com/dotnet/maui/issues/20847

arseniigorkin commented 8 months ago

Looks like you might be hitting this: dotnet/maui#20847

Hi! Are you able to build the game without the issue with this? Thx.

jfversluis commented 8 months ago

We build all of our samples in an automated pipeline as part of adding them to this repository. You can see the summary of that here: https://github.com/dotnet/maui-samples/actions/runs/8066602046.

So yes, this is able to build

davidbritch commented 8 months ago

Hi @arseniigorkin

The issue is this: there's an AbsoluteLayout bug on Android that's only fixed in 8.0.7. So you can use previous MAUI releases on the other platforms and the sample is fine on those platforms. But for the sample to work on Android you need 8.0.7.

Even with 8.0.7 the sample should build fine in VS, provided that your workloads have been 100% managed by VS (meaning you've never use the .NET CLI to install your workloads). It's on a Mac that you can encounter issues building the sample. In that case remove the <MauiVersion /> line from the .csproj and it should build (but there'll be a layout bug on Android then).