Targets
Targets
The targets are a way of:
organizing the solution
generating kits automatically
ensuring code integrity and architecture
The most important aspect of a target is inheritance and composition. A target and all of its properties can be re-used by being referenced in higher level targets, thus helping to reduce duplication of deployment files and improve structuring of the deployment system.
Structure
The targets are represented as a JSON file located in the same path as a Visual Studio Solution, with the name .targets added to it. If the solution file name is “TimeLine.sln”, then there will be a file called “TimeLine.target”
Activating Targets
Open the Developer Settings Ribbon item and check the “Show targets” option

Target Picker
Once the targets are activated, some extra UI elements will appear on the upper side of the Solution Explorer. One of them is the target picker:

This picker will have the following functions:
Filtering the solution based on the projects within the target
Deployment for the selected target in the case of the Target Action
Target ActionOn the left part of the target widget, a three-option button appears:

The buttons have the following functionality:

Target Simple
AttributesThe following attributes are active for all targets:

Target Browsable Attributes
The browsable attributes (the ones highlighted in the above table with the browsable marker) will be described below.
Target References
On the left pane you a list of selectable targets are being displayed. The ones that are referenced indirectly through referencing other targets will be removed from the selection.
On the right pane the selected references are displayed, as well as the ones that are inherited from the referenced ones (recursively)
Target Projects
On the left pane the selectable solution projects are displayed. The ones that are selected indirectly through referencing other targets will be removed from the view.
On the right pane the selected projects are displayed, together with the ones that are selected indirectly through referencing other targets.
Target Deployment Items
Files
Copies the files from the source directory to the destination directory. Examples:

DataSets, LookupGrids, SearchDefinitions, Reports
On the left pane you will find the selectable items (the ones that are not inherited from other targets) which can be individually checked/unchecked, while on the right pane you find the ones that have already been selected, as well as ones that have been selected in the referenced targets (recursively).
Installer Script
When opening the installer script, a text editor screen will appear which allows Inno Setup code to be defined as part of the currently selected target.
Target Extended
These attributes are applied for targets of type 'Product':

Target Global SettingsThe target editor has a 2nd tab called “Global settings” where some settings can be edited that are applied for all targets:

Command Line Tool
The target runtime can also be called as a command line tool by running the TimeLine.Targets.exe file. The following arguments apply:

Last updated