Docs Menu

Docs HomeRealm

Install Realm - .NET SDK

On this page

  • Prerequisites
  • Installation
  • Open the NuGet Package Manager
  • Add the Realm Package
  • Open the NuGet Package Manager
  • Add the Realm Package
  • Add the Realm Weaver to FodyWeavers.xml
  • Import Realm

You can use Realm's .NET SDK to develop apps in C# .NET with several frameworks: .NET MAUI, Xamarin, Avalonia UI, UWP, Unity, and others.

For more information about specific version support for .NET, .NET MAUI, UWP, and Xamarin, see Platform and Framework Compatibility - .NET SDK.


Integrating the Realm .NET SDK with Unity has different prerequisites and install steps than the ones below. Learn how to Integrate Realm with Unity.

Before getting started, ensure you have installed Visual Studio:

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


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.

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

using Realms;
←  Realm - .NET SDKQuick Start - .NET SDK →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.