mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
.. | ||
Localization | ||
Project | ||
.gitignore | ||
app.config | ||
Cli.cs | ||
NAPS2.Tools.csproj | ||
Paths.cs | ||
Program.cs | ||
README.md |
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 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)