Skip to content

Conversation

@TheCodeTraveler
Copy link
Collaborator

@TheCodeTraveler TheCodeTraveler commented Feb 16, 2025

Description of Change

This PR bumps MauiPackageVersion to 9.0.40 and bumps the minimum .NET SDK version to 9.0.200.

Thanks to the updated Android Dependencies in the Microsoft.Maui.Controls NuGet Package, we can remove the transient Android dependencies in CommunityToolkit.Maui.Camera and CommunityToolkit.Maui.MediaElement.

PR Checklist

Additional information

The MauiPackageVersion property is used to define the version number for every Microsoft.Maui.* dependency used in each .NET MAUI Community Toolkit, e.g. Microsoft.Maui.Controls, Microsoft.Maui.Essentials, etc.

This update requires users to install the latest .NET SDK and the latest MAUI Workloads installed on their local environment. I've added the requirements updated Used when a PR requires us to update the .NET SDK, .NET MAUI Workloads, Xcode Version, etc label.

Here is the updated requirements we will need to include in the Release Notes:

## Requirements

The following tools are now required for CommunityToolkit.Maui:
- [ ] Download/install [.NET SDK v9.0.200](https://dotnet.microsoft.com/download/dotnet/)
- [ ] Install Xcode 16.2.0 (or higher)
  - Read the [latest .NET MAUI Release wiki](https://github.com/dotnet/maui/wiki/Release-Versions) to always find the latest-supported version) of Xcode for .NET MAUI 
  - We HIGHLY recommend using the open-source tool [Xcodes](https://github.com/XcodesOrg/XcodesApp) to easily manage your installed Xcode versions
- [ ] Update to the latest stable version of Visual Studio (or Jet Brains Rider)
- [ ] After installing the latest stable .NET SDK, update to the latest stable version of the .NET MAUI workload:
  - On macOS, open the Terminal and enter the following command: `sudo dotnet workload install maui; sudo dotnet workload update`
  - On Windows, open the command prompt (or Powershell) and enter the following command: `dotnet workload install maui;dotnet workload update`
- [ ] Add a [`global.json`](https://learn.microsoft.com/dotnet/core/tools/global-json) file to your application with the following parameters to ensure you're not using a unsupported preview version of .NET (example below)
  - The .NET MAUI Community Toolkit does not support preview releases of .NET 

### global.json
    ```
    {
      "sdk": {
        "version": "9.0.200", 
        "rollForward": "latestFeature",
        "allowPrerelease": false
      }
    }
    ```

@TheCodeTraveler TheCodeTraveler added the breaking change This label is used for PRs that include a breaking change label Feb 16, 2025
Copilot AI review requested due to automatic review settings February 16, 2025 17:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (4)
  • Directory.Build.props: Language not supported
  • global.json: Language not supported
  • src/CommunityToolkit.Maui.Camera/CommunityToolkit.Maui.Camera.csproj: Language not supported
  • src/CommunityToolkit.Maui.MediaElement/CommunityToolkit.Maui.MediaElement.csproj: Language not supported

@TheCodeTraveler TheCodeTraveler added needs discussion Discuss it on the next Monthly standup and removed breaking change This label is used for PRs that include a breaking change labels Feb 16, 2025
Copy link
Collaborator

@VladislavAntonyuk VladislavAntonyuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to update pipelines

@ne0rrmatrix
Copy link
Member

I tested and verified the android updates on windows do not have any warnings when building now with 9.0.40 and 9.0.200 that are referenced in this PR. Nice to finally see those transient dependencies removed!

@TheCodeTraveler
Copy link
Collaborator Author

You also need to update pipelines

Haha - whoops! I only updated azure-pipelines.yml and forgot to update dotnet-build.yml too. 😆🤦

Fixed ✅

@TheCodeTraveler TheCodeTraveler added the requirements updated Used when a PR requires us to update the .NET SDK, .NET MAUI Workloads, Xcode Version, etc label Feb 16, 2025
@TheCodeTraveler TheCodeTraveler merged commit a1b88d2 into main Feb 16, 2025
10 checks passed
@TheCodeTraveler TheCodeTraveler deleted the Bump-MauiPackageVersion-to-9.0.40 branch February 16, 2025 19:05
@github-actions github-actions bot locked and limited conversation to collaborators Feb 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs discussion Discuss it on the next Monthly standup requirements updated Used when a PR requires us to update the .NET SDK, .NET MAUI Workloads, Xcode Version, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants