Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Peppers 9cae3c9343
[net8.0] fix C# compiler error involving `x:Name` (#242)
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.
2023-10-23 11:11:13 -05:00
Jonathan Peppers df5d09c158
Fix .NET 8 build errors (#226)
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.
2023-05-25 13:34:26 -05:00
Parker Bibus 91ede60ce2
[ci] updates for .NET 7 / maui builds (#164)
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>
2022-10-20 22:55:22 -05:00
Jonathan Peppers 5b730106b0 Update NuGet.config 2022-07-28 14:01:20 -05:00
Eric Erhardt ddb75aaafb Fix CI build
Add a nuget.config that adds the necessary feeds.
2022-04-13 14:48:24 -05:00