Adding a Configuration Item
Configuration project items are added at the project level in the solution. To add a configuration, perform the following steps:
In Solution Explorer, right-click the Project and select Add > New Item. The Add New Item window is displayed.
Select the Configuration item from the General templates.
Enter the name for the configuration and click OK. The Configuration item is displayed in Solution Explorer and opens in the Designer.
In the example shown below, Configurations
named HelpDeskRegionNE and HelpDeskRegionNE were added to the project.
Continue by Defining the Configuration.
After adding a configuration project item, define the configuration item by selecting components (or controls) and property-value pairs. Each combination of component-property-value is a profile. A configuration item may contain multiple profiles. These steps show how to define configurations for the Form Text for a Windows form.
Open the Windows form in
the Designer and select the Text property for the form. Right-click
the property and select Configure. The Property Configuration dialog
is displayed.
Set the value for the property
in the New 'Text' property value box. In this example the HelpDeskRegionMW
configuration uses the Windows Form Text value of Midwest Region.
Click Apply to set the property value for the selected configuration.
In the Configuration box,
select the next configuration (HelpDeskRegionNE) and then set the
Form text value for this configuration. An example is shown here:
Click Apply to set the property
value for the selected Configuration and then click OK. The configurations
are updated in the Designer with the component-property-value profiles.
See the example below:
These steps show how to set a single component-property-value profile for a configuration. You can add more than one profiles to a configuration.
Once you finish defining the configurations, you can run the project with a specific configuration or deploy the project with one or more configurations. For more information, see Project Properties.
Related information
Privacy | Trademarks | Terms of Use | Feedback
Updated: 18 June 2020
© 2016 - 2020 Pegasystems Inc. Cambridge, MA All rights reserved.