Import-Module ApplicationServer
Set-ASApplication -SiteName "Default Web Site" -VirtualPath "/x.y.z" -AutoStartMode "All" -EnableApplicationPool
<Exec ContinueOnError="false" Command='powershell.exe "$(MSBuildProjectDirectory)\SetupAppFabric.ps1"' WorkingDirectory='$(MSBuildProjectDirectory)' />
<!--AppFabric cmdlets need PS2 run in x64 env; other build tasks need x86, so shell out to x64 for this:—>
<Exec Command='%SystemDrive%\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe "$(MSBuildProjectDirectory)\Build.proj" /t:SetupAppFabric'/>
<Exec ContinueOnError="false" Command='powershell.exe "$(MSBuildProjectDirectory)\SetupAppFabric.ps1"'WorkingDirectory='$(MSBuildProjectDirectory)' />