Cannot set ASP.NET version using CreateVirtualDirectory

May 1, 2009 at 10:52 AM
Edited May 1, 2009 at 10:54 AM
Hello,

I created a new virtual directory using the CreateVirtualDirectory task. The directory is created perfect except the ASP.NET version was set on 1.1.
Is it possible to set/change the version while creating the virtual directory? I cannot find that property?

Thanks in advance

Pieter

Task settings used:
<Web.WebSite.CreateVirtualDirectory
VirtualDirectoryName="$(VirtualDirName)"
Path="$(WebFolder)"
MachineName="$(Server)"
AppPoolID="$(AppPoolName)"
AppCreate="true"
WebSiteName="$(VirtualDirWebsite)"
WebAppName="$(VirtualDirName)"
/>
May 1, 2009 at 10:59 AM
Changing de ASP.NET version of the website the virtual directory was created under the problem was fixed. However I still think it is usefull to create a property for the ASP.NET version the VirtualDirectory should use.
By default use the website version unless the property tells you otherwise.

Pieter