A commercial extension to Metalama.Framework that allows you to validate code and code references.
Install
| Product | Versions |
|---|---|
| .NET Standard |
README
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.Frameworkor 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
Validateextension method to theIQueryinterface 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
ValidateInboundReferencemethods to theIQueryinterface 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.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.