msbuild ITaskItem output -


i'm trying use msbuild.extensionpack.web.iis7apppool task getinfo task action. task's output parameter siteinfo property, type itaskitem. propery, not collection.

how can access siteinfo metadata? can access $, can web site name. tried use %(siteinfo.) no success.

if output parameter itaskitem , want access metadata need assign itemgroup instead of property.

 <target name="test">      <msbuild.extensionpack.web.iis7apppool       taskaction="getinfo"       name="defaultapppool">        <output taskparameter="apppoolinfo" itemname="poolinfo"  />     </msbuild.extensionpack.web.iis7apppool>      <message text="apppool info = [@(poolinfo)]" />     <message text="apppool maxprocesses = [%(poolinfo.maxprocesses)]" />      <msbuild.extensionpack.web.iis7website       taskaction="getinfo"       name="default web site">        <output taskparameter="siteid" propertyname="webid"  />       <output taskparameter="siteinfo" itemname="webinfo"  />     </msbuild.extensionpack.web.iis7website>      <message text="website id = [$(webid)]" />     <message text="website app pool = [%(webinfo.applicationpoolname)]" />    </target> 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -