Xamarin.Essentials gives developers essential cross-platform APIs for their mobile applications.
iOS, Android, and UWP offer unique operating system and platform APIs that developers have access to, all in C# leveraging Xamarin. It is great that developers have 100% API access in C# with Xamarin, but these APIs are different per platform. This means developers have to learn three different APIs to access platform-specific features. With Xamarin.Essentials, developers have a single cross-platform API that works with any iOS, Android, or UWP application that can be accessed from shared code no matter how the user interface is created.
Get your technical questions answered by experts on Microsoft Q&A.
Contributing to Xamarin.Essentials? Join our Discord server and chat with the team
Build Server | Type | Platform | Status |
---|---|---|---|
Azure DevOps | Build | Windows |
Xamarin.Essentials is available via NuGet & is included in every template:
- NuGet Official Releases:
- Nightly / CI Releases: https://aka.ms/xamarin-essentials-ci/index.json
Please read our Getting Started with Xamarin.Essentials guide for full setup instructions.
Starting in .NET 6, Xamarin.Essentials was added into .NET MAUI directly. The team has worked hard to ensure that while it comes pre-configured with every .NET MAUI application, it is still available to all iOS and Android apps built with .NET. If you are building a .NET MAUI project there is nothing more for you to do, just start using the APIs. If you are migrating a Xamarin.iOS or Xamarin.Android app and want to use the Essentials APIs, then add the following into your project's csproj file:
<PropertyGroup>
<UseMauiEssentials>true</UseMauiEssentials>
</PropertyGroup>
Once you update to .NET MAUI Essentials, you will need to update any using Xamarin.Essentials;
using statements (and any other namespace references) to the new .NET MAUI Essentials namespaces, which you can find in the documentation.
Browse our full documentation for Xamarin.Essentials, including feature guides, on how to use each feature.
Platform support & feature support can be found on our documentation
Please read through our Contribution Guide. We are not accepting new PRs for full features, however any issue that is marked as up for grabs
are open for community contributions. We encourage creating new issues for bugs found during usage that the team will triage. Additionally, we are open for code refactoring suggestions in PRs.
Xamarin.Essentials is built with the new SDK-style projects with multi-targeting enabled. This means that all code for iOS, Android, and UWP exist inside of the Xamarin.Essentials project.
A minimum version of Visual Studio 2019 16.3 or Visual Studio for Mac 2019 8.3 are required to build and compile Xamarin.Essentials.
- Xamarin
- .NET Core
- UWP
- Android 10.0, 9.0, 8.1, 8.0, 7.1, 7.0, & 6.0 SDK Installed
- UWP 10.0.16299 SDK Installed
Your can run the included android-setup.ps1
script in Administrator Mode and it will automatically setup your Android environment.
Here are some frequently asked questions about Xamarin.Essentials, but be sure to read our full FAQ on our Wiki.
Please see the License.