<property>

Sets a property in the current project.

Note: NAnt uses a number of predefined properties.

Parameters

Attribute Type Description Required
name string The name of the NAnt property to set. True
value string The value to assign to the NAnt property.

This attribute's properties will not be automatically expanded!

True
dynamic bool Specifies whether references to other properties should not be expanded when the value of the property is set, but expanded when the property is actually used. By default, properties will be expanded when set. False
overwrite bool Specifies whether the value of a property should be overwritten if the property already exists (unless the property is read-only). The default is true. False
readonly bool Specifies whether the property is read-only or not. The default is false. False
failonerror bool Determines if task failure stops the build, or is just reported. The default is true. False
if bool If true then the task will be executed; otherwise, skipped. The default is true. False
unless bool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbose bool Determines whether the task should report detailed build log messages. The default is false. False

Examples

Requirements

Assembly: NAnt.Core (0.90.3780.0)