I want to deploy my web site to a share and have set the ApplicationDirectory to an unc path, \\server\share\Applications.
All works fine and the files are deployed to the share. But I have also checked the setting Create or update an IIS Web Site and Application Pool .
The problem now is that the web site gets the home directory Microsoft.PowerShell.Core\FileSystem::\\server\share\Applications
I can see in Octopus.Features.IISWebSite_BeforePostDeploy.ps1 that you do
$webRoot = (resolve-path $webRoot)
This will generate the prefix. I have now changed the line to make it work
$webRoot = (resolve-path $webRoot).Path.Replace('Microsoft.PowerShell.Core\FileSystem::', '')
How can I make this work without the hack?