paket.install is a dotnet cli tool to ease paket installation for netcore projects.
Install it as a global tool using the following command:
dotnet tool install paket.install -g
you can also install it locally to a specific directory:
dotnet tool install paket.install --tool-path ./tools
USAGE: paket.install.exe [--help] [--version <string>] [--feed <string>] [--paket-path <string>] [--enable-scripts]
[--skip-gitignore] [--silent] [--verbose]
OPTIONS:
--version <string> specify paket version to install
--feed <string> specify nuget feed used to download paket bootstrapper
--paket-path, -p <string>
the paket directory path
--enable-scripts, -es enable script generation in paket.dependencies
--skip-gitignore skip .gitignore generation/modification
--silent, -s silent mode
--verbose, -v verbose output
--help display this list of options.
The tool installs .paket/paket.bootstrapper.proj and .paket/paket.bootstrapper.props files that manage paket bootstrapping for dotnet restore. Once setup, no need to add .paket/paket.exe to git repository, since it will be loaded and installed if missing. Use --version to fix the paket.bootstrapper version to use, and --feed to use a different nuget feed. The default is pointing to Enrico Sada paket-netcore-as-tool myget feed.
The tool then creates an empty paket.dependencies files for dotnet core, restricting framework, disabling storage. It is possible to request load script generation using the --enable-scripts flag.
The tool also adds new entries in the .gitignore file to a void committing paket files accidentally. This step can be skipped using the --skip-gitignore flag.
This tool is based on Enrico Sada paket-netcore-testing-as-tool work.
Thank you to Steffen Forkmann for make paket awesome!