Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.19 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.19 KB

A dotnet tool for generating solution filter (.slnf) files based on globs

NuGet Badge codecov

Easily create a solution filter to avoid restoring more than necessary

Usage example

RUN slnf-gen MySolution.sln --exclude **/*Test* && dotnet restore MySolution.slnf

Help

Description:
  Solution filter generator
  Example of excluding test projects: 'slnf-gen MySolution.sln --exclude **/*Test*' which creates MySolution.slnf

Usage:
  slnf-gen <path to sln> [options]

Arguments:
  <path to sln>  File path to the solution (.sln) file

Options:
  -e, --exclude <exclude>          Exclusion glob(s)
  -i, --include <include>          Inclusion glob(s) [default: **/*]
  -o, --output-path <output-path>  Optional path of output .slnf file. Defaults to same directory and file name as .sln file but different file extension
  --version                        Show version information
  -?, -h, --help                   Show help and usage information