![](/style/images/good.png)
![](/style/images/bad.png)
Github GitHub - davidortinau/WeatherTwentyOne
source link: https://github.com/davidortinau/WeatherTwentyOne
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Weather '21
This is a .NET MAUI app showcasing .NET 6 Preview 4 progress. For more information about what's included, read the release blog post.
Requirements
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
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.
New Controls
In Preview 4 we enable push/pop navigation with NavigationPage
. We added a concrete implementation of IWindow
, and completed porting ContentPage
from Xamarin.Forms.
Platform Integrations
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
Single Project
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.
C# Hot Reload - Android
- Switch the
WeatherTwentyOne.csproj
to be<TargetFrameworks>net6.0-android</TargetFrameworks>
- In the
WeatherTwentyOne.csproj
set theUseInterpreter
property totrue
:
Additional Resources
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK