.net - Visual Studio Post Build Task passing Multiple files -
i have executable file - process.exe - takes single file path , file (no outputs). process.exe isn't capable of accepting wildcard paths e.g. process.exe c:\project\*.ext
what want select files of particular extension in project (*.xmlt) , pass each 1 of these files process.exe part of afterbuild
step.
you'll have use batching (in project file):
<propertygroup> <processexe>process.exe</processexe> </propertygroup> <target name="afterbuild"> <itemgroup> <xmlt include="**\*.xmlt"/> </itemgroup> <exec command="$(processexe) %(xmlt.fullpath)"/> </target>
Comments
Post a Comment