-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support .NET 9.0 #2215
Support .NET 9.0 #2215
Conversation
The errors are because in https://github.com/CommunityToolkit/Maui/blob/feature/sl-dotnet-nine/azure-pipelines.yml the .NET SDK to install is
See Lines 73 to 78 in c4169ed
Note that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the Analyzer Unit Tests, Shaun! We can just remove the reference to Net80 since we won't be reverting back to .NET 8 after we update the library to .NET 9.
src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpAnalyzerVerifier`1+Test.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Maui.Analyzers.UnitTests/Verifiers/CSharpCodeFixVerifier`2+Test.cs
Outdated
Show resolved
Hide resolved
…AnalyzerVerifier`1+Test.cs Co-authored-by: Brandon Minnick <[email protected]>
…CodeFixVerifier`2+Test.cs Co-authored-by: Brandon Minnick <[email protected]>
src/CommunityToolkit.Maui/Behaviors/EventToCommandBehavior.shared.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Maui/Behaviors/ICommunityToolkitBehavior.shared.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Maui/Behaviors/Validators/ValidationBehavior.shared.cs
Outdated
Show resolved
Hide resolved
Thanks for the suggestions. I know we have been discussing about migrating to GitHub actions so I will leave this with limited change for now |
src/CommunityToolkit.Maui/Behaviors/ICommunityToolkitBehavior.shared.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Maui/Converters/ICommunityToolkitValueConverter.shared.cs
Outdated
Show resolved
Hide resolved
We have all check building thanks to @jfversluis for the workaround. I propose we add the workaround into the release notes |
With the latest changes it builds. But clicking on menu's does not work. App loads but I cannot click on navigation link to test any functionality. I have tried the usual dotnet clean and deleting bin/obj folders. It builds and runs but I cannot navigate to any pages from Main Page. This is specific to Mac Catalyst on Mac Mini M2. edit: After further investigation this is a Release mode issue and debug mode works fine. So possibly another release mode issue if anyone can confirm? Page navigation appears to be non functional in sample app in release mode. |
Description of Change
Linked Issues
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PRBreaking Changes
Major Breaking Changes
Behavior.BindingContext
CommunityToolkit.Maui.MediaElement
CommunityToolkit.Maui.Camera
to 15.0:Minor Breaking Changes
Expander
is not trim safeCommunityToolkit.Maui.Maps
is not trim safePopupService.ShowPopop(TViewModel)
[Obsolete]
methodPopupService.ShowPopup<T>()
insteadPopupService.ShowPopopAsync(TViewModel, CancellationToken)
[Obsolete]
methodPopupService.ShowPopupAsync<T>()
insteadBaseConverter<TFrom, TTo>
BaseConverter<TFrom, TTo>
is not supportedBaseConverter<TFrom, TTo, TParam>
BaseConverter<TFrom, TTo, TParam>
is not supportedValidationFlags.ValidateOnFocusing
renamed toValidationFlags.ValidateOnFocused
ValidationFlags.ValidateOnUnfocusing
renamed toValidationFlags.ValidateOnUnfocused
CommunityToolkit.Maui.Camera
, addlinker.xml
fornet9.0-android
to avoid the Linker removingXamarin.AndroidX.Camera.Core
,Xamarin.AndroidX.Camera.Lifecycle
,Xamarin.AndroidX.Camera.Video
,Xamarin.AndroidX.Camera.View
, andXamarin.AndroidX.Camera.Camera2
public static Task<bool> ShowKeyboardAsync(this ITextInput, CancellationToken)
->public static ValueTask<bool> ShowKeyboardAsync(this ITextInput, CancellationToken)
Microsoft.Maui.Controls
.NET 10 until .NET 10 GAAnalyzer Benchmarks