Ferrous.Ownership 2.3.0

dotnet add package Ferrous.Ownership --version 2.3.0
                    
NuGet\Install-Package Ferrous.Ownership -Version 2.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ferrous.Ownership" Version="2.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ferrous.Ownership" Version="2.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Ferrous.Ownership" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ferrous.Ownership --version 2.3.0
                    
#r "nuget: Ferrous.Ownership, 2.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ferrous.Ownership@2.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ferrous.Ownership&version=2.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Ferrous.Ownership&version=2.3.0
                    
Install as a Cake Tool

Ferrous.Ownership

Flow-sensitive Roslyn diagnostic analyzer built on Roslyn's ControlFlowGraph enforcing Rust-style affine move semantics in C#:

  • FE0200 (Error): Definite use of a moved/consumed variable ([Consuming] parameter or [ConsumesSelf] receiver).
  • FE0201 (Error): Use of a possibly moved variable across conditional branches (if/else, switch) or loop iterations.

Installation

dotnet add package Ferrous.Ownership

Quick Example

using Ferrous;

void Send([Consuming] Packet packet) { /* takes ownership */ }

var packet = new Packet();
Send(packet);
_ = packet.Size; // error FE0200: Value 'packet' was already consumed and cannot be used again

See the Ownership Analyzer Guide and Ferrous Repository for full documentation.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Ferrous.Ownership:

Package Downloads
Ferrous

Metapackage bundling all Ferrous runtime libraries, source generators, and Roslyn analyzers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.3.0 0 11/30/2026
2.2.0 0 11/30/2026
2.1.0 0 11/30/2026
2.0.0 0 11/30/2026
1.7.4 0 11/30/2026
1.7.3 0 11/30/2026
1.7.2 0 11/30/2026
1.7.1 0 11/30/2026
1.7.0 0 11/30/2026
1.6.0 0 11/30/2026
1.5.0 0 11/30/2026
1.4.0 35 11/30/2026
1.3.3 42 11/30/2026
1.3.2 39 11/30/2026
1.3.1 40 11/30/2026
1.3.0 40 11/30/2026
1.2.0 50 11/30/2026