Open Source .NET Development [Electronic resources]

Brian Nantz

نسخه متنی -صفحه : 275/ 161
نمايش فراداده

<readregistry>A task that reads a value or set of values from the Windows registry into one or more NAnt properties.

Attribute

Description

Required

property

The property to set to the specified registry key value.

False

prefix

The prefix to use for the specified registry key values.

False

key

The registry key to read.

True

hive

The registry hive to use.

False

failonerror

Determines whether task failure stops the build or is just reported. Default is "true."

False

verbose

Task reports detailed build log messages. Default is "false."

False

if

If true then the task will be executed; otherwise skipped. Default is "true."

False

unless

Opposite of if. If false then the task will be executed; otherwise skipped. Default is "false."

False

Example

<readregistry property="sdkRoot" key="\SOFTWARE\Microsoft\.NETFramework\sdkInstallRoot" hive="LocalMachine" />