An open API service indexing awesome lists of open source software.

https://github.com/rosenbjerg/slnf-gen

A dotnet tool for generating solution filter (.slnf) files based on globs
https://github.com/rosenbjerg/slnf-gen

dotnet globs sln slnf

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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

[![NuGet Badge](https://buildstats.info/nuget/SolutionFilterGenerator)](https://www.nuget.org/packages/SolutionFilterGenerator/)
[![codecov](https://codecov.io/gh/rosenbjerg/slnf-gen/branch/main/graph/badge.svg)](https://codecov.io/gh/rosenbjerg/slnf-gen)

Easily create a solution filter to avoid restoring more than necessary

## Usage example

```dockerfile
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 [options]

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

Options:
-e, --exclude Exclusion glob(s)
-i, --include Inclusion glob(s) [default: **/*]
-o, --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
```