Roslyn analyzers that allow you to define architectural rules for your codebase
Install the NuGet package in your project:
Install-Package ArchitectureAnalyzer
or
dotnet add package ArchitectureAnalyzer
Add a file called "architecture.rules.json" as an AdditionalFile to your project. This file will contain the rules for your project.
<ItemGroup>
<AdditionalFiles Include="architecture.rules.json" />
</ItemGroup>
Define the rules for your project in the "architecture.rules.json" file. The schema for this file is:
{
"rules": [
"<rule>",
"<rule>",
"..."
]
}
MIT License (Read license)
Uses LightJson by Marcos López C.