dotnet-zip-source 1.0.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 Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.0 405 10/1/2021