This is a .NET MAUI app showcasing .NET 6 Preview 4 progress. For more information about what's included, read the release blog post.
To run this app, you'll need:
- .NET 6 Preview 4
- .NET MAUI and platform SDKs
- Visual Studio 16.11 Preview 1
The easiest way to get .NET 6 Preview 4 is to install the maui-check
dotnet tool from CLI and follow the instructions.
Install:
dotnet tool install -g redth.net.maui.check
Run:
maui-check
For additional NuGet config, follow the Getting Started guide.
For running on Mac you'll currently use your favorite text editor and terminal to edit and run apps. We expect Visual Studio for Mac .NET 6 support to begin arriving mid-year.
In Preview 4 we enable push/pop navigation with NavigationPage
. We added a concrete implementation of IWindow
, and completed porting ContentPage
from Xamarin.Forms.
To demonstrate how easily you can enable platform-native integrations, we added a handful of features:
- App Actions - Microsoft.Maui.Essentials provides a simple API to add shortcuts you access from the app icon
- System Tray - added the .NET bot to the tray on Windows and status bar on macOS
- Notifications - trigger a notification when clicking the bot
The WeatherTwentyOne project is a multi-targeted SDK project that can run on Android, iOS, and macOS. To choose your platform to run on, use the new static run profiles from the run button.
- Switch the
WeatherTwentyOne.csproj
to be<TargetFrameworks>net6.0-android</TargetFrameworks>
- In the
WeatherTwentyOne.csproj
set theUseInterpreter
property totrue
: