Once Ntools is installed, Open a Developer Command prompt for Visual Studio 2022 and navigate to your solution folder (i.e. ./ntools). The nb.exe is the main executable for the Ntools. The following are some examples of how to use the Ntools:
- Build a solution: Compiles the solution in the solution directory
nb.exe solution
- Clean a solution: Deletes the release/Debug, bin and obj folders in the solution directory
nb.exe clean
- Test solution: runs all the tests in the solution with optional code coverage
nb.exe test
- Create a stage release: Creates a stage build which includes the following steps:
- Clean the solution
- Build the solution
- Run tests with code coverage
- Generate coverage reports
- Publish the stage build
- Verify artifacts with smoke tests
- Create a zip file of the stage build file
nb.exe stage
- Comprehensive smoke test: Validates published artifacts and build system integrity
nb.exe smoke_test
- Display available targets: Lists all the available targets in the targets file
nb.exe targets
- See the complete list of available targets at Nbuild Targets
- Learn more about code coverage at Code Coverage