Table of Contents

Rules Engine for .NET

NRules is an open source rules engine for .NET that is based on the Rete matching algorithm. Rules are authored in C# using internal DSL.

NRules is also an inference engine, where, unlike with scripting engines, there is no predefined order in which rules are executed. Instead, inference engine figures out which rules should be activated based on the facts given to it, and then executes them according to a conflict resolution algorithm. Among other features, NRules supports forward chaining, complex fact queries, negative, existential and universal quantifiers.

To learn more, go to the corresponding sections of the NRules documentation.

Getting Started with NRules

To install NRules, get the package from nuget NuGet

> dotnet add package NRules

Use the following resources to get up and running with NRules

Getting Help

Use the following discussion and Q&A platforms to get help with NRules


Clone NRules on GitHub.

See Contributor Guide for the guidelines on how to contribute to the project.