-
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
base: main
Are you sure you want to change the base?
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
Things are looking very positive: dotnet/maui#26303 (comment) |
Thanks man. Good news :) |
We can say that an update is a day or so away once we receive the official .NET MAUI nuget containing the fix. My test build was against the MAUI nightly feed and I believe we are waiting on SR2 to be released. I am hopeful the release is imminent |
Thx mate. Appreciate the good work :) |
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.
Dang - there is a new error:
I'll re-add the |
During investigation I found that error is caused by a failing MSBuild task, so I reported the issue to 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.
Copilot reviewed 431 out of 446 changed files in this pull request and generated no comments.
Files not reviewed (15)
- .editorconfig: Language not supported
- Directory.Build.props: Language not supported
- global.json: Language not supported
- samples/CommunityToolkit.Maui.Sample/AppShell.xaml: Language not supported
- samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sample.csproj: Language not supported
- samples/CommunityToolkit.Maui.Sample/Pages/Alerts/SnackbarPage.xaml: Language not supported
- samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/AnimationBehaviorPage.xaml: Language not supported
- samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/CharactersValidationBehaviorPage.xaml: Language not supported
- samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/EmailValidationBehaviorPage.xaml: Language not supported
- samples/CommunityToolkit.Maui.Sample/App.xaml.cs: Evaluated as low risk
- samples/CommunityToolkit.Maui.Sample/Pages/Alerts/AlertsGalleryPage.cs: Evaluated as low risk
- samples/CommunityToolkit.Maui.Sample/Pages/Alerts/SnackbarPage.xaml.cs: Evaluated as low risk
- samples/CommunityToolkit.Maui.Sample/Pages/Behaviors/AnimationBehaviorPage.xaml.cs: Evaluated as low risk
- samples/CommunityToolkit.Maui.Sample/Pages/Base/BaseGalleryPage.cs: Evaluated as low risk
- samples/CommunityToolkit.Maui.Sample/Converters/CompareDoubleToColorConverter.cs: Evaluated as low risk
This is the exception from the build log above
And the code can be found here |
@espenrl please add the detail to the issue opened at dotnet/runtime#110714 |
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