jsuarezruiz / WeatherTwentyOne

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

.NET MAUI Weather App on all platforms

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

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.

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

gallery of platform images

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.

run menu

C# Hot Reload - Android

  1. Switch the WeatherTwentyOne.csproj to be <TargetFrameworks>net6.0-android</TargetFrameworks>
  2. In the WeatherTwentyOne.csproj set the UseInterpreter property to true:

Additional Resources

https://github.com/dotnet/maui-samples

https://github.com/dotnet/maui

About

License:MIT License


Languages

Language:C# 100.0%