Skip to content

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

License

Notifications You must be signed in to change notification settings

rosenbjerg/slnf-gen

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages