.NETStandard2.0
An official and open-source Metalama extension that allows to verify the code against architecture rules.
Published
Apr 23, 2024
2y ago
Total Downloads
99.0K
98,983
Install
dotnet add package Metalama.Extensions.Architecture --version 2024.2.2-preview
| Product | Versions |
|---|---|
| .NET Standard |
README
The Metalama.Extensions.Architecture package is an official and open-source Metalama extension that allows you to validate the code against the architecture.
There are two ways to use this package:
By adding to your code one of the following architecture custom attributes from the
Metalama.Extensions.Architecture.Aspectsnamespace:[CannotBeUsedFrom][CanOnlyBeUsedFrom][InternalsCannotBeUsedFrom][InternalsCanOnlyBeUsedFrom][Experimental][InternalImplementOnly][DerivedTypesMustRespectNamingConvention][DerivedTypesMustRespectRegexNamingConvention]
By using fabrics, for instance:
namespace SomeNamespace; using Metalama.Extensions.Architecture.Fabrics; using Metalama.Framework.Fabrics; public class Fabric : NamespaceFabric { public override void AmendNamespace( INamespaceAmender amender ) { amender.Verify().InternalsCanOnlyBeUsedFrom( UsageRule.OwnNamespace ); } }
Changes from Previous Version
No structural changes between v2024.2.1-preview and v2024.2.2-preview.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.