How do I envoke a MSBuild target in the middle of another target? -


what i'm looking like:

<target name="dostuff" >     <message text="doing stuff..." />     //run target dootherthing     <message text="doing more stuff..." /> </target> 

there's calltarget you'd use like

<target name="dostuff" >   <message text="doing stuff..." />   <calltarget targets="dootherthing" />   <message text="doing more stuff..." /> </target> 

and there's more idiomatic, albeit bit on top case, way:

<itemgroup>   <mytargets include="message1" />   <mytargets include="dootherthing" />   <mytargets include="message2" /> </itemgroup>  <target name="message1" />   <message text="doing stuff..." /> </target>  <target name="dootherthing" />   <calltarget targets="dootherthing" /> </target>  <target name="message2" />   <message text="doing more stuff..." /> </target>  <target name="dostuff" dependsontargets="@(mytargets)"> </target> 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -