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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -