Novolis.Tools.CodeLayout.Cli 2026.1.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Novolis.Tools.CodeLayout.Cli --version 2026.1.1.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Novolis.Tools.CodeLayout.Cli --version 2026.1.1.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Novolis.Tools.CodeLayout.Cli&version=2026.1.1.2
                    
nuke :add-package Novolis.Tools.CodeLayout.Cli --version 2026.1.1.2
                    

Novolis.Tools.CodeLayout.Cli

novolis-code-layout detects and repairs C# source layout across an entire .slnx.

Install

dotnet tool install --global Novolis.Tools.CodeLayout.Cli --add-source https://nuget.pkg.github.com/Novolis-Platform/index.json

Detect a solution

novolis-code-layout detect d:\novolis\Novolis.Platform.slnx
novolis-code-layout detect d:\novolis\Novolis.Platform.slnx --json

The detect command reports:

  • files with more than one distinct top-level type, including the type kept and the types to move;
  • type-less files, including top-level-statement, using-only, metadata-only, directive-only, empty-namespace, and empty/comment-only files;
  • safe deletion candidates;
  • generated files skipped from the default scan.

map remains an alias for detect. The input path may also be used without a command:

novolis-code-layout d:\novolis\Novolis.Platform.slnx
novolis-code-layout d:\novolis\Novolis.Platform.slnx --delete

Detect and fix a solution

novolis-code-layout detect-and-fix d:\novolis\Novolis.Platform.slnx
novolis-code-layout detect-and-fix d:\novolis\Novolis.Platform.slnx --delete

fix remains an alias for detect-and-fix. The command moves extra top-level types into new files beside their source file and stages each new file with Git. It keeps the type whose name matches the source file, or the first type when no name matches. The fixer preserves regular usings and namespaces, and leaves global usings and assembly attributes on the original file.

--delete is required before any deletion. It only removes files classified as empty or comment-only with no types, statements, usings, attributes, extern aliases, or significant preprocessor directives. Type-less files that may carry imports, metadata, top-level statements, or directives are mapped but retained. Files shared by more than one project and generated files are never deletion candidates.

Use --include-generated to map generated files for inspection. Generated files are never rewritten or deleted by fix.

Product Compatible and additional computed target framework versions.
.NET 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.

This package has no dependencies.

Version Downloads Last Updated
2026.1.1.4 97 10/2/2026
2026.1.1.2 83 10/1/2026