views:

56

answers:

0

With the following:

<Web.WebSite.Create Condition="'$(Flag)'=='false'"
  Description="XXX"
  Path="$(SolutionPath)\Blah"
  Port="8100"/>

<!-- Add Resources VirtualDirectory -->
<Web.WebSite.CreateVirtualDirectory Condition="'$(Flag)'=='false'"
  VirtualDirectoryName="Profile"
  Path="$(RootFolderPath)\Resources"
  AppCreate="False"
  WebSiteName="XXX" />

<!-- Add AssetStore VirtualDirectory -->
<Web.WebSite.CreateVirtualDirectory Condition="'$(Flag)'=='false'"
  VirtualDirectoryName="AssetStore"
  Path="$(RootFolderPath)\Assets"
  AppCreate="False"
  WebSiteName="XXX" />

The website and virtual directories are created, however the "Profile" virtual directory is created with an Application i.e. ignoring the appcreate parameter. If I change the order in which the virtual directories are created (AssetStore then Profile) then the AssetStore virtual directory is created with an aplpication.

Target webserver is IIS7.