.NETStandard2.0
An official and open-source Metalama extension that allows to verify the code against architecture rules.
Published
Dec 21, 2023
2y ago
Total Downloads
99.0K
98,983
Install
dotnet add package Metalama.Extensions.Architecture --version 2023.3.10
| 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 v2023.3.9 and v2023.3.10.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
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.