Calling nant from msbuild -


i'm attempting run existing nant task msbuild targets file. there way this? google gives me lots of examples of calling msbuild nant, nothing other way around.

thank you.

you call nant msbuild's exec command. don't think there's other command in msbuild call nant specifically.

calling nant target msbuild this

<exec command="nant -buildfile:your.build yourtarget"/> 

and if want nant return something, try in nant:

<echo message="yourreturnparameter" file="yourfile.tmp" /> 

and let msbuild read it:

<readlinesfromfile file="yourfile.tmp" >     <output       taskparameter="lines"       itemname="yourreturnparameter"/> </readlinesfromfile> 

source: http://msdn.microsoft.com/en-us/library/x8zx72cd.aspx


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -