naps2/NAPS2.Tools
2022-09-09 22:06:12 -07:00
..
Localization Sane paper source options 2022-09-09 22:06:12 -07:00
Project Rename NAPS2.Lib.Common to NAPS2.Lib 2022-08-20 17:46:18 -07:00
.gitignore Move ClientCreds to NAPS2.Lib.Common and avoid custom prebuild 2022-07-29 22:09:34 -07:00
app.config Create a generic NAPS2.Tools project for various commands, starting with "n2 clean" 2022-07-04 16:50:12 -07:00
Cli.cs Improve install/verify 2022-07-14 20:57:51 -07:00
NAPS2.Tools.csproj Implement saneopts tool to auto-generate SaneOptionTranslations file 2022-09-08 19:50:30 -07:00
Paths.cs Add a virus scan command 2022-07-30 18:30:36 -07:00
Program.cs Implement saneopts tool to auto-generate SaneOptionTranslations file 2022-09-08 19:50:30 -07:00
README.md Verification fixes wip 2022-07-08 16:52:47 -07:00

NAPS2.Tools

Tools for NAPS2 building, testing, packaging, verification, etc.

How to run

You will need the latest .NET SDK. Open a terminal in your NAPS2 solution directory and run the following commands:

Powershell

function n2 { dotnet run --project NAPS2.Tools $args }
n2 build all

Commands

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
  • clean: Clear out bin/obj subfolders
  • test: Run solution tests
  • build: 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 installer
  • verify: 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)