core/sitefinity/iis/sub-app.ps1
<#
.SYNOPSIS .DESCRIPTION .PARAMETER xxxx .OUTPUTS None #> function sf-iis-subApp-set { Param( [Parameter(Mandatory = $true)][string]$subAppName ) $project = sf-proj-getCurrent $subApp = iis-get-subAppName -websiteName $project.websiteName if ($subApp) { return } $dummyPath = "c:\dummySubApp" if (-not (Test-Path $dummyPath)) { New-Item $dummyPath -ItemType Directory } iis-set-sitePath $project.websiteName $dummyPath iis-new-subApp $project.websiteName $subAppName $project.webAppPath } function sf-iis-subApp-remove { $project = sf-proj-getCurrent $subAppName = iis-get-subAppName $project.websiteName if ($null -eq $subAppName) { return } iis-remove-subApp $project.websiteName $subAppName iis-set-sitePath $project.websiteName $project.webAppPath } |