Install Realm - .NET SDK

MongoDB Realm's .NET SDK enables development of applications in C# for the .NET, UWP, and Xamarin ecosystems.

For more information about specific version support for .NET, UWP, and Xamarin, see Supported Platforms.

Before getting started, ensure you have installed Visual Studio:

Follow these steps to add the MongoDB Realm .NET SDK to your project.


Under the Project menu, select Manage NuGet Packages... to open the NuGet Package management window.


In the search bar, search for Realm. Select the result and click Add Package. When prompted, select all projects and click Ok.

Important With Circle IconCreated with Sketch.Important

Be sure to check the "Show pre-release packages" checkbox!

Info With Circle IconCreated with Sketch.Note

You can skip this step if you were not already using Fody in your project. Visual Studio will generate a properly-configured FodyWeavers.xml file for you when you first build.

If your project was already using Fody, you must manually add the Realm weaver to your FodyWeavers.xml file. When done, your FodyWeavers.xml file should look something like this:

<Weavers xmlns:xsi="" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Realm />

Add the following line to the top of your source files to use MongoDB Realm:

using Realms;
Give Feedback