-
Notifications
You must be signed in to change notification settings - Fork 9
Development The Build Script
Nathan Leach edited this page Dec 18, 2020
·
1 revision
The Powershell script build.ps1 at the root of the repository provides a quick method of building CxAnalytix. Execution of the build script will attempt to first build CxAnalytix with the installed .Net Core SDK. If there is not a .Net Core SDK installed, it will attempt to build using a Docker image. If Docker is not installed, the script abort the build with an error.
There are several optional parameters that can be passed to build.ps1:
| Parameter | Default Value | Description |
|---|---|---|
| OutLoc | artifacts | The path where the build artifacts should be written. |
| BuildConfig | Release | The build configuration to be used for the build. |
| Version | Current Date yyyy.MM.dd | A version stamp to apply to the build artifacts. Defaults to a version stamp derived from the current date. |
| Build | Current Date HHmmss | A build stamp to apply to the build artifacts. Defaults to a build stamp derived from the current time. |
| Docker | False | This is a flag parameter. Adding -Docker to the command will set the flag to True and force the build to be executed in a Docker container. |
| Clean | False | This is a flag parameter. Adding -Clean to the command will set the flag to True and delete any previously built artifacts located at -OutLoc. |