maui-samples

Samples for .NET Multi-Platform App UI (.NET MAUI)

MIT License

Stars
3.1K
Committers
57

Bot releases are visible (Hide)

maui-samples - .NET 6.0 Preview 6 Latest Release

Published by jonathanpeppers over 3 years ago

The .NET 6.0 Preview 6 releases are available for download here:

https://dotnet.microsoft.com/download/dotnet/6.0

.NET Multi-Platform App UI (MAUI) Workload Downloads

.NET 6 introduces Android, iOS, and macOS SDKs for developing native applications. These provide the foundational mobile and desktop pieces for the new .NET MAUI. See documentation for additional setup instructions and creating your first .NET MAUI application.

After installing the .NET SDK, you can install .NET MAUI using the dotnet workload install command:

$ dotnet workload install maui

The following workloads are also available to install individually:

$ dotnet workload install microsoft-android-sdk-full
$ dotnet workload install microsoft-ios-sdk-full
$ dotnet workload install microsoft-maccatalyst-sdk-full
$ dotnet workload install microsoft-macos-sdk-full
$ dotnet workload install microsoft-tvos-sdk-full

Visit .NET Documentation to learn about .NET, for building many different types of applications.

maui-samples - .NET 6.0 Preview 5

Published by jonathanpeppers over 3 years ago

The .NET 6.0 Preview 5 releases are available for download here:

https://dotnet.microsoft.com/download/dotnet/6.0

.NET Multi-Platform App UI Workload Downloads

.NET 6 introduces Android, iOS, and macOS SDKs for developing native applications. These provide the foundational mobile and desktop pieces for the new .NET Multi-platform App UI. See dotnet/maui-samples for additional setup instructions and sample projects you can run today.

After installing the .NET SDK, you can install these platform SDKs using the dotnet workload install command:

$ dotnet workload install microsoft-android-sdk-full
$ dotnet workload install microsoft-ios-sdk-full
$ dotnet workload install microsoft-maccatalyst-sdk-full
$ dotnet workload install microsoft-macos-sdk-full
$ dotnet workload install microsoft-tvos-sdk-full

Visit .NET Documentation to learn about .NET, for building many different types of applications.

maui-samples - .NET 6.0 Preview 4

Published by jonathanpeppers over 3 years ago

The .NET 6.0 Preview 4 releases are available for download here:

https://dotnet.microsoft.com/download/dotnet/6.0

.NET Multi-Platform App UI Workload Downloads

.NET 6 introduces Android, iOS, and macOS SDKs for developing native applications. These provide the foundational mobile and desktop pieces for the new .NET Multi-platform App UI. See dotnet/maui-samples for additional setup instructions and sample projects you can run today.

Android SDK Installer iOS SDK Installer Mac Catalyst SDK Installer Mac Cocoa SDK Installer
Windows x64 x64
macOS x64 x64 x64 x64

Visit .NET Documentation to learn about .NET, for building many different types of applications.

maui-samples - .NET 6.0 Preview 3

Published by jonathanpeppers over 3 years ago

The .NET 6.0.0 Preview 3 releases are available for download here:

https://dotnet.microsoft.com/download/dotnet/6.0

.NET Multi-Platform App UI Workload Downloads

.NET 6 introduces Android, iOS, and macOS SDKs for developing native applications. These provide the foundational mobile and desktop pieces for the new .NET Multi-platform App UI. See dotnet/net6-mobile-samples for additional setup instructions and sample projects you can run today.

Android SDK Installer iOS SDK Installer Mac Catalyst SDK Installer Mac Cocoa SDK Installer
Windows x64 x64
macOS x64 x64 x64 x64

Visit .NET Documentation to learn about .NET, for building many different types of applications.

maui-samples - .NET 6.0 Preview 2

Published by jonathanpeppers over 3 years ago

The .NET 6.0.0 Preview 2 and .NET SDK 6.0.100-preview.2.21155.3 releases are available for download here:

https://dotnet.microsoft.com/download/dotnet/6.0

.NET Multi-Platform App UI Workload Downloads

.NET 6 introduces Android, iOS, and macOS SDKs for developing native applications. These provide the foundational mobile and desktop pieces for the new .NET Multi-platform App UI. See dotnet/net6-mobile-samples for additional setup instructions and sample projects you can run today.

Android SDK Installer iOS SDK Installer Mac Catalyst SDK Installer
Windows x64 x64
macOS x64 x64 x64

Visit .NET Documentation to learn about .NET, for building many different types of applications.

maui-samples - .NET 6.0 Preview 1

Published by jonathanpeppers over 3 years ago

Downloads:

See the .NET 6 download page for the full release notes for .NET 6.0 Preview 1.

Android and iOS projects will need to add additional NuGet feeds. An example NuGet.config file would be:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
    <add key="xamarin" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/xamarin-impl/nuget/v3/index.json" />
    <!-- Any additional feeds -->
  </packageSources>
</configuration>

Android

Prerequisites:

  • You will need the Android SDK installed as well as Android SDK Platform 30. One way to acquire this is to install the Xamarin workload in the Visual Studio installer. You can manage Android SDKs from Tools > Android > Android SDK Manager from within Visual Studio.

iOS

Prerequisites:

  • Xcode 12.3

Using IDEs

Currently, you can use Visual Studio 2019 16.9 Preview 4 on Windows
(with the Xamarin workload) with a few manual steps.

Open an Administrator command prompt to enable the
EnableWorkloadResolver.sentinel feature flag:

> cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\SdkResolvers\Microsoft.DotNet.MSBuildSdkResolver"
> echo > EnableWorkloadResolver.sentinel

NOTE: your path to Visual Studio may vary, depending on where you
selected to install it. Preview is the default folder for Visual
Studio Preview versions.

Restart Visual Studio after making this change.

Visual Studio for Mac support will be coming in a future release.

Known Issues

Debugging Android applications that are built for multiple architectures may crash on some devices. To workaround, try using a single architecture by defining a single RuntimeIdentifier in the .csproj file:

<PropertyGroup>
  <RuntimeIdentifier>android.21-arm64</RuntimeIdentifier>
</PropertyGroup>

Release builds should be unaffected by this issue.