I currently have a list for VirtualDirectories specified in a .proj file.
This .proj file is imported into my main msbuild script and the contents is currently batched , the msbuild looks a bit like this
The problem comes in that I need for the tasks to not create a virtual directory or application, should it already exist (a possibility in my scenario). I need a way to test if the app or vdir exists (I can do this with the tasks). What I am not sure how
to do is how to act on each result in turn.
The applications and vdirs are pregenerated using a flat list in external code and are not aware of the target server at all so I cannot check there. Is it possible to achieve this with msbuild, either my collection modification or by other means or am I
just asking too much ?