UNC path as application directory and Web Site

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?

Hi Hans,

Thanks for letting us know, we’ll fix this in 2.2 release.