Targets
Last updated
Last updated
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.
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”
Open the Developer Settings Ribbon item and check the “Show targets” option
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
The buttons have the following functionality:
AttributesThe following attributes are active for all targets:
The browsable attributes (the ones highlighted in the above table with the browsable marker) will be described below.
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)
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.
Copies the files from the source directory to the destination directory. Examples:
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).
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.
These attributes are applied for targets of type 'Product':
The target runtime can also be called as a command line tool by running the TimeLine.Targets.exe file. The following arguments apply:
For a complete reference of the Inno Setup commands, please visit the below link: