dotnet-zip-source 1.0.0

.NET 5.0
dotnet tool install --global dotnet-zip-source --version 1.0.0
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 dotnet-zip-source --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-zip-source&version=1.0.0
nuke :add-package dotnet-zip-source --version 1.0.0

dotnet-zip-source

Once this tool is installed you can run dotnet git-zip to quickly zip your project source files which git does not ignore.

  • Zips a project or solution folder
  • Includes and excludes files and folders as specified in the root .gitignore file
  • If no .gitignore file is found, default rules values will be applied
  • .git/ is always ignored, but this can be overriden by adding -r !.git/

To install

dotnet tool install dotnet-zip-source

###To use

dotnet zip-source -d [directory] -z [zipOutputPath] -r [rule] [rule] [rule]

Arguments:
    -d/--directory   The directory to begin zipping at
                     Defaults to the current working directory
    -z/--zip         Path to the output zip file
                     Defaults to create a zip file as a sibling to the source directory
    -r/--rules       One or more gitignore rules;  These will be applied AFTER rules contained in the .gitignore file

Default Rules

[Bb]in/
[Oo]bj/
packages/
node_modules/
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.0 195 10/1/2021