Context: https://github.com/dotnet/maui/pull/5611
Fixes: https://github.com/microsoft/dotnet-podcasts/issues/239
The `net8.0` branch currently fails to build with:
src/Mobile/Controls/Player.xaml.cs(54,9): error CS0103: The name 'podcastImage' does not exist in the current context
src/Mobile/Controls/Player.xaml.cs(55,9): error CS0103: The name 'duration' does not exist in the current context
We think that `x:Name` in .NET 8 appropriately "skips" emitting fields
when used in combination with `<OnPlatform/>`.
We can condition the C# code accessing these fields with `#if`.
Secondly, there are also a lot places using `<On Platform="UWP, macOS">`, we need
to change these to:
* `macOS` -> `MacCatalyst`
Lastly, use .NET 8 RC 2 released bits. We shouldn't need to be using nightly builds in this repo.
Context: https://github.com/dotnet/maui/pull/12885/files
The main breaking change is that `MessagingCenter` is now `internal` / in the process of being removed.
Migrate to the messenger in the Community Toolkit instead.
I also updated the `NuGet.config` for the dotnet8 feed.
CI was failing with:
Workload installation failed: Could not find workload 'microsoft-net-runtime-android-net6' extended by workload 'android' in manifest 'microsoft.net.sdk.android'
This is likely caused by using .NET 7 Preview 6. Update the `dotnet-install` command to install the latest 7.0.1xx SDK.
Temporarily add NuGet feeds for:
* dotnet/aspnetcore 7.0.0
* dotnet/runtime 7.0.0
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>