Easily create a solution filter to avoid restoring more than necessary
RUN slnf-gen MySolution.sln --exclude **/*Test* && dotnet restore MySolution.slnf
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