Open Source .NET Development [Electronic resources]

Brian Nantz

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

<comregister>

COM register task will try to register any type of COM-related file that needs registering. .exe files will be registered as exe servers and .tlb files will be registered with RegisterTypeLib, and it will attempt to register all other file types as dll servers.

Attribute

Description

Required

file

Name of COM component.

True

unregister

Should unregister? Default is false.

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

<comregister file="myComServer.exe"/> <comregister unregister="false"> <fileset> <includes name="an_ExeServer.exe"/> <includes name="a_TypeLibrary.tlb"/> <includes name="a_DllServer.dll"/> <includes name="an_OcxServer.ocx"/> </fileset> </comregister>