Install Realm - .NET SDK
On this page
Realm's .NET SDK enables development of applications in C# for the .NET, .NET MAUI, UWP, Xamarin, and Unity ecosystems.
For more information about specific version support for .NET, .NET MAUI, UWP, and Xamarin, see Platform and Framework Compatibility - .NET SDK.
Note
Integrating the Realm .NET SDK with Unity has different prerequisites and install steps than the ones below. Learn how to Integrate Realm with Unity.
Prerequisites
Before getting started, ensure you have installed Visual Studio:
Visual Studio 2015 Update 2 or later.
Visual Studio for Mac 7.0 or later.
Installation
Follow these steps to add the Realm .NET SDK to your project.
Important
Install the SDK for all projects
If you have a multi-platform solution, be sure to install the SDK for all of the platform projects, even if the given project doesn't contain any Realm-specific code.
Import Realm
Add the following line to the top of your source files to use Realm:
using Realms;