This project is read-only.

/n with #foreach

Jun 18, 2010 at 10:53 AM


first: great project, thanks!

Is there a way to combine the /n parameter with #foreach? Im using XML files with directly embedded ${xxx} statements instead of the #ifdef syntax. But now I want to include the #foreach statement... I was hoping for something like this:

  <!-- #foreach (multiple) -->
  <!-- #endforeach -->

Jun 21, 2010 at 4:16 PM
I know it's a hack, but have you considered processing the file twice? Once to resolve the foreach, then a second time with the /n to do everything else? Have you looked at the new msdeploy features, it's tough to find documentation on it, and I've never tried using it myself, but it looks promising:
Jun 22, 2010 at 6:55 AM


I'm using the xmlpreprocessor in BTDF ( I think it would be possible to modify the target files to run the processor twice, thanks!