-
Notifications
You must be signed in to change notification settings - Fork 0
Command Arguments
Available commands are listed below.
Command | Description | Required |
---|---|---|
-debug | Displays detailed errors and stack trace information. | |
-help or ? | Displays help information and examples. | |
-metadata | Overrides generated NuSpec metadata properties. | |
-module | The module code name. | ✓ |
-nuspec | The NuSpec file path (absolute or relative to the website root). | |
-output | Specifies the package output directory (absolute or relative to the website root). The default path is 'CMSSiteUtils/Export'. |
|
-properties | Defines a set of property tokens where each occurrence of with the given value. |
|
-version | Sets the package version explicitly or resolves the version by assembly attribute. |
Displays detailed errors and stack trace information.
PackageBuilder.exe -module:<codename> -debug
where <codename>
represents the Kentico module code name.
Displays help information and examples.
PackageBuilder.exe -help
PackageBuilder.exe ?
Note: The
-?
and\?
aliases are also accepted help aliases.
Overrides generated NuSpec metadata properties.
PackageBuilder.exe -module:<codename> -metadata:<object>
where <codename>
represents the Kentico module code name and <object>
represents a comma-delimited list of metadata names and values.
Property | Description |
---|---|
id | The case-insensitive package identifier. |
title | The human-friendly title of the package for UI display. |
description | The package long description for UI display. |
authors | A comma-separated list of package authors. |
PackageBuilder.exe -module:Acme.Module -metadata:title="Acme Management Module"
PackageBuilder.exe -module:Acme.Module -metadata:id=Acme.Kentico.Module,title="Acme Management Module"
Note: Single quotes
'
or double quotes"
are required to declare values with spaces.
The module code name. This is a required command argument.
PackageBuilder.exe -module:<codename>
where <codename>
represents the Kentico module code name.
PackageBuilder.exe -module:Acme.Module
The NuSpec (.nuspec) package specification file path (absolute or relative to the website root).
For more detailed information see the NuSpec Manifests section.
PackageBuilder.exe -module:<codename> -nuspec:<nuspecfile>
where <codename>
represents the Kentico module code name and <nuspecfile>
represents a NuSpec (.nuspec) package specification file path.
Note: Using the command
-nuspec
without a value or-nuspec=*
will automatically detect.nuspec
files matching the module code name (<codename>.nuspec
) from the website root directory. As with other commands, file paths with spaces will require single quotes'
or double quotes"
.
Specifies the package output directory (absolute or relative to the website root). The default path is 'CMSSiteUtils/Export'.
PackageBuilder.exe -module:<codename> -output:<path>
where <codename>
represents the Kentico module code name and <path>
the package output directory.
PackageBuilder.exe -module:Acme.Module -output:Packages\Modules
PackageBuilder.exe -module:Acme.Module -output:"Packages\Custom Modules"
PackageBuilder.exe -module:Acme.Module -output:"D:\Packages\Custom Modules"
Note: Single quotes
'
or double quotes"
are required to declare paths with spaces.
Defines a set of property tokens where each occurrence of
For more detailed information see the NuSpec Manifests section.
PackageBuilder.exe -module:<codename> -nuspec:<nuspecfile> -properties:<object>
where <codename>
represents the Kentico module code name, <nuspecfile>
represents a NuSpec (.nuspec) package specification file path, and <object>
represents a comma-delimited list of token names and values.
Sets the package version explicitly or resolves the version by assembly attribute.
For more detailed information see the Package Versioning section.
PackageBuilder.exe -module:<codename> -version:<object>
where <codename>
represents the Kentico module code name and <object>
represents either a manual version or assembly version reference described in the following examples.
PackageBuilder.exe -module:Acme.Module -version:1.0.0-CI20170510
PackageBuilder.exe -module:Acme.Module -version:1.0.0-CI%build.number%
PackageBuilder.exe -module:Acme.Module -version:assembly
PackageBuilder.exe -module:Acme.Module -version:assembly,assemblyAttribute=AssemblyInformationalVersion
PackageBuilder.exe -module:Acme.Module -version:assembly=CustomLibrary.dll
PackageBuilder.exe -module:Acme.Module -version:assembly=CustomLibrary.dll,assemblyAttribute=AssemblyInformationalVersion
PackageBuilder.exe -module:Acme.Module -version:assembly="D:\Custom Modules\CustomLibrary.dll"
Note: Using the argument property
assembly
orassembly=*
will automatically detect assembly files matching the module code name (<codename>.dll
or<codename>.exe
) from the website root orbin
directories. If noassemblyAttribute
property is specified, theAssemblyFileVersion
attribute will be used by default.
The following assembly attributes are currently supported:
Attribute Type | Description |
---|---|
AssemblyVersion | The assembly identity version |
AssemblyFileVersion (default) | The assembly file version |
AssemblyInformationalVersion (recommended) | The assembly version information |
Copyright © 2018 Ntara, Inc. All rights reserved.