CreateVirtualDirectory AppCreate="False" Ignored?

Feb 3, 2010 at 12:15 PM

With the following:

<!-- EnsureWebsite Exists -->
    <Web.WebSite.Exists Description="XXX">
      <Output TaskParameter="DoesExist" PropertyName="Flag"/>
    </Web.WebSite.Exists>

    <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.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Developer
Feb 3, 2010 at 12:34 PM

Hi

These tasks arent designed for IIS7. You will need to write your own task or try the IIS7 tasks in the MSBuild Extension Pack.

Regards

Mike

Feb 3, 2010 at 12:47 PM

Even with IIS6 Metabase compatibility enabled?

 

Developer
Feb 3, 2010 at 1:45 PM

They have not been tested in that configuration.