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
<PackageReference Include="Metalama.Extensions.Validation" Version="2025.1.10" />
<PackageVersion Include="Metalama.Extensions.Validation" Version="2025.1.10" />
<PackageReference Include="Metalama.Extensions.Validation" />
paket add Metalama.Extensions.Validation --version 2025.1.10
#r "nuget: Metalama.Extensions.Validation, 2025.1.10"
#addin nuget:?package=Metalama.Extensions.Validation&version=2025.1.10
#tool nuget:?package=Metalama.Extensions.Validation&version=2025.1.10
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 theIQuery
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 theIQuery
interface exposed by aspects and fabrics. It allows to validate code that references the target declaration.
Documentation
API Documentation: Metalama.Extensions.Validation
Conceptual Documentation: Validating code from an aspect
Related Packages
- Metalama.Extensions.Architecture implements concrete rules based on
Metalama.Extensions.Validation
.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Metalama.Extensions.Validation.Redist (>= 2025.1.10)
- Metalama.Framework (>= 2025.1.10)
- Metalama.Licensing (>= 2025.1.10)
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 |