DomainCentric.ArchRules.Xunit 0.6.0

dotnet add package DomainCentric.ArchRules.Xunit --version 0.6.0
                    
NuGet\Install-Package DomainCentric.ArchRules.Xunit -Version 0.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DomainCentric.ArchRules.Xunit" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DomainCentric.ArchRules.Xunit" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="DomainCentric.ArchRules.Xunit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DomainCentric.ArchRules.Xunit --version 0.6.0
                    
#r "nuget: DomainCentric.ArchRules.Xunit, 0.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DomainCentric.ArchRules.Xunit@0.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DomainCentric.ArchRules.Xunit&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=DomainCentric.ArchRules.Xunit&version=0.6.0
                    
Install as a Cake Tool

DomainCentric.ArchRules.Xunit

xUnit base class that runs the whole DomainCentric.ArchRules catalog as one theory case per rule.

public sealed class ArchitectureTest : DcaArchitectureTest
{
    protected override DcaLayout Layout => DcaLayout.ForRootNamespace("Acme.Shop");

    protected override IEnumerable<Assembly> Assemblies => new[] { typeof(Program).Assembly };
}

Requires xUnit v2

This package builds on xunit.core 2.x. On an xUnit v3 project it restores and compiles without a warning and then contributes no test at all: dotnet test exits 0, no architecture rule runs, and the build is green while nothing was checked. The package therefore refuses that combination with build error DCA0001.

On xUnit v3, reference DomainCentric.ArchRules alone and run the catalog from a test of your own:

[Fact]
public void ArchitectureRulesHold()
{
    var layout = DcaLayout.ForRootNamespace("Acme.Shop");
    var architecture = DcaArchitecture.Load(layout, typeof(ArchitectureTests).Assembly);
    DcaRules.CheckAll(architecture, DcaRuleSelection.All());
}

Full documentation: https://github.com/domain-centric-development/dca-dotnet

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 112 9/22/2026
0.5.0 93 9/21/2026
0.4.0 202 9/10/2026
0.3.0 113 9/8/2026
0.2.0 103 9/7/2026
0.1.0 106 9/7/2026