Metalama.Extensions.Validation 2025.1.10

Prefix Reserved
dotnet add package Metalama.Extensions.Validation --version 2025.1.10
                    
NuGet\Install-Package Metalama.Extensions.Validation -Version 2025.1.10
                    
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="Metalama.Extensions.Validation" Version="2025.1.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Metalama.Extensions.Validation" Version="2025.1.10" />
                    
Directory.Packages.props
<PackageReference Include="Metalama.Extensions.Validation" />
                    
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 Metalama.Extensions.Validation --version 2025.1.10
                    
#r "nuget: Metalama.Extensions.Validation, 2025.1.10"
                    
#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.
#addin nuget:?package=Metalama.Extensions.Validation&version=2025.1.10
                    
Install as a Cake Addin
#tool nuget:?package=Metalama.Extensions.Validation&version=2025.1.10
                    
Install as a Cake Tool

Metalama Logo

About

The Metalama.Extensions.Validation package extends Metalama.Framework with APIs that allow to validate code. Its most important and unique feature is the ability to validate code references (i.e. usages or dependencies).

This package provides a base API from which concrete validation rules can be built.

Features

  • Validate code references (i.e. code usages or dependencies).
  • Validate declarations before or after aspects have been applied.
  • Warnings appear as familiar C# warnings.
  • Immediate feedback as you type in the IDE.
  • Warnings can be suppressed using the standard mechanisms such as #pragma warning disable.
  • Extensible through Metalama.Framework or Roslyn.

License

This package is a commercial extension of the open-source Metalama.Framework and requires a Metalama Professional license.

Principal Types

  • ValidationQueryExtensions provides the Validate extension method to the IQuery interface exposed by aspects and fabrics. This methods allows to validate a declaration, possibly before or after it has been modified by aspects.

  • ReferenceValidationQueryExtensions provides the ValidateInboundReference methods to the IQuery interface exposed by aspects and fabrics. It allows to validate code that references the target declaration.

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 Metalama.Extensions.Validation:

Package Downloads
Metalama.Extensions.Architecture

A commercial Metalama extension that allows to verify the code against architecture rules.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2025.1.10 158 7/3/2025
2025.1.9 476 5/29/2025
2025.1.8 197 5/26/2025
2025.1.7 191 5/22/2025
2025.1.6 287 5/15/2025
2025.1.5 195 5/2/2025
2025.1.4-rc 266 4/15/2025
2025.1.3-rc 230 4/9/2025
2025.1.2-preview 242 4/1/2025
2025.1.1-preview 196 3/18/2025