jonnii / BuildDeploySupport

Powershell scripts to help with deployment and building.
Apache License 2.0
41 stars 16 forks source link

folders recursively created until path to long #7

Open floekke opened 10 years ago

floekke commented 10 years ago

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

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.

jonnii commented 10 years ago

@floekke did you ever get this to work?

floekke commented 10 years ago

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..