MSBuild Convert Virtual Path to Application

Jan 11, 2011 at 11:41 AM



I have been sitting for two days now on a simple thing. I succeed in MSBuild Extensions to create a Virtual Directory:

<MSBuild.ExtensionPack.Web.Iis7Website TaskAction="AddVirtualDirectory" Name="Default Web Site" VirtualDirectories="@(MyVirtualDirectory)" ContinueOnError="true"/>   

This virtual directory is under the Default Web Site which is what I needed. But I can't seem to do the final step and convert the virtual directory to an application and assign it to my msbuild created application pool.


Can someone please shed some light on this?