Skip to content

Installation

ferdi kurnaz edited this page Aug 27, 2026 · 2 revisions

Installation

Resultron is published on NuGet, so adding it to your project is easy.

Requirements

  • .NET SDK that supports .NET 10 (the library targets net10.0).
  • A C# project (console app, web API, class library, etc.).

Install with the .NET CLI

Open a terminal in your project folder and run:

dotnet add package Resultron

Install with the NuGet Package Manager (Visual Studio)

  1. Right-click your project in Solution Explorer.
  2. Select Manage NuGet Packages...
  3. Search for Resultron.
  4. Click Install.

Install with PackageReference (manual)

You can also add it directly inside your .csproj file:

<ItemGroup>
    <PackageReference Include="Resultron" Version="*" />
</ItemGroup>

Replace * with the exact version you want, for example 1.4.1.

Add the using statement

Once installed, add this line at the top of your C# file:

using Resultron;

Now you can use Result, Result<T>, and Error in your code.

Verify it works

Try this small test in a console app:

using Resultron;

var result = Result.Success();
Console.WriteLine(result.IsSuccess); // True

If this prints True, the installation worked correctly.

Next: learn about the Core Concepts of the library.

Clone this wiki locally