BuildDeploySupport
BuildDeploySupport copied to clipboard
folders recursively created until path to long
Hi
Great work. When running 'Prepare-ClickOnce' I end up with an exception:
Prepare-ClickOnce -target Installers -version 1.2.3.6 -source . -applicationExecutable PortfolioManager.exe -applicationName PortfolioManagerNew -applicationDisplayName PortfolioManagerNewDisplayName -icon LindCapital2.ico -publisher fslPublisher -providerPath http://localhost/Portfoliomanager -processor amd64
Copy-Item : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. At C:\Users\fsl\source\LindCapitalAll\branches\working\Deploy\Support\ClickOnce.ps1:59 char:3
- Copy-Item -r -exclude _.xml "$source_" $targetVersion
-
- CategoryInfo : WriteError: (C:\Users\fsl\so....3.6\Installers:String) [Copy-Item], PathTooLongException
- FullyQualifiedErrorId : CreateDirectoryIOError,Microsoft.PowerShell.Commands.CopyItemCommand
And a whole lot of directories of the form:
\Installers\1.2.3.6\Installers\1.2.3.6\Installers\1.2.3.6\Installers\
I'm pretty sure I'm not calling the script recursively on my own..
Any suggestions?
Thx.
@floekke did you ever get this to work?
I haven't used the script since. But I remember locating the error. It happened because of a copy operation where the source folder got dynamically expanded because the target folder was contained in the source folder..