MsBuild: Read part of the file using ReadLinesFromFile -
i need read xml file. use following code:
<itemgroup> <sourcexsltfile include="sourcefile.xml" /> </itemgroup> <readlinesfromfile file="@(sourcexsltfile)"> <output taskparameter="lines" itemname="filecontents" /> </readlinesfromfile> but need part of file's content copied resides inside <xsl> tag.
any ideas?
http://msbuildtasks.tigris.org/ - use regexmatch task -
<xsl\b[^>]*>(.*?)</xsl>(not sure exact correctness though).write own custom task
Comments
Post a Comment