SeamGuard.Analyzer 0.2.0.4

dotnet add package SeamGuard.Analyzer --version 0.2.0.4
                    
NuGet\Install-Package SeamGuard.Analyzer -Version 0.2.0.4
                    
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="SeamGuard.Analyzer" Version="0.2.0.4">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SeamGuard.Analyzer" Version="0.2.0.4" />
                    
Directory.Packages.props
<PackageReference Include="SeamGuard.Analyzer">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 SeamGuard.Analyzer --version 0.2.0.4
                    
#r "nuget: SeamGuard.Analyzer, 0.2.0.4"
                    
#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 SeamGuard.Analyzer@0.2.0.4
                    
#: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=SeamGuard.Analyzer&version=0.2.0.4
                    
Install as a Cake Addin
#tool nuget:?package=SeamGuard.Analyzer&version=0.2.0.4
                    
Install as a Cake Tool

SeamGuard logo

SeamGuard.Analyzer

SeamGuard.Analyzer is a C# Roslyn analyzer that enforces configuration-defined architectural boundaries during normal .NET builds.

It checks behavioral service types, direct references, constructor dependencies, project and package references, friend assemblies, and test mocks. Violations are reported as build diagnostics.

Installation

dotnet add package SeamGuard.Analyzer

Configuration

Create .seamguard/config.json beside the solution, in the project directory, or in one of its ancestor directories.

{
  "version": 1,
  "projects": {
    "General.Core": {
      "projectReferences": {
        "deny": ["General.Data"]
      }
    }
  }
}

An explicit configuration path can be set from a project or shared props file.

<PropertyGroup>
  <SeamGuardConfigFile>$(MSBuildThisFileDirectory)architecture/seams.json</SeamGuardConfigFile>
</PropertyGroup>

The analyzer is inactive when no configuration is found. An explicitly configured file must exist.

Documentation, configuration reference, and source

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.2.0.4 38 7/17/2026
0.1.1.2 46 7/16/2026
0.1.0.1 40 7/16/2026