IIS.Create application inside virtual directory

Apr 16, 2013 at 12:47 PM
I can create create application inside website with <MSBuild.ExtensionPack.Web.Iis7Website TaskAction="AddApplication" Name="Default Web Site" Applications ="@(Application)"/> but I cant create application inside virtual directory that exist in site.
How can I do it?
Apr 19, 2013 at 12:29 PM
Hi, I think you can actually do this, you just need to specify the right include path, here is a sample

        <Application1 Include="/vd1/app1">
    <MSBuild.ExtensionPack.Web.Iis7Website TaskAction="AddApplication" Name="NewSite" Applications="@(Application1)"/>

vd1 in this case is the path of a virtual directory I have in the website

Marked as answer by mikeFourie on 10/9/2013 at 3:17 PM
Apr 19, 2013 at 3:14 PM
It works excellent !!!
Thank you.