Tools for NAPS2 building, testing, packaging, verification, etc.
You will need the latest .NET SDK. Open a terminal in your NAPS2 solution directory and run the following commands:
function n2 { dotnet run --project NAPS2.Tools -- $args }
n2 build all
alias n2="dotnet run --project NAPS2.Tools --"
n2 build all
Run n2 help
for a full list of commands and n2 help <command>
for all options for a particular command. Some examples:
n2 clean
n2 test
n2 build exe
n2 pkg exe
n2 verify exe
n2 publish exe
n2 virus exe
n2 share
clean
: Clear out bin/obj subfolderstest
: Run solution testsbuild
: Builds the solution with the specified configuration (debug/exe/msi/zip/all)pkg
: Generates the specified package type, e.g. exe => naps2-{version}-win-x64.exe installerverify
: Installs/extracts the packaged file and runs NAPS2.App.Tests against it- Requires elevation for exe/msi as it does a real install on your local machine (and uninstalls the old NAPS2)
publish
: Runs a series of commands: clean, test, build, pkg, verifyvirus
: Uploads a package to VirusTotal for a false positive checkshare
: Syncs local packages with a cloud folder (to help with cross-platform packaging)