Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


cspack.exe doesn't like deep directory trees (e.g deep node_modules) #703

kessler opened this Issue · 4 comments

3 participants

Yaniv Kessler Mark Cowlishaw Glenn Block
Yaniv Kessler

It's probably not the right place to post this, but I can't find the bug I saw about this a few months ago.

node_modules tends to become really deep, directory tree wise, this is a problem for cspack.exe:

X:\space>cspack .\ServiceDefinition.csdef /out:cloud_package.cspkg
Windows(R) Azure(TM) Packaging Tool version
for Microsoft(R) .NET Framework 3.5
Copyright (c) Microsoft Corporation. All rights reserved.

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

My current workaround is to 7z my code before deployment to azure, but that completely changes the entire deployment procedure (need to include 7z.exe to automatically un7z it on the worker role etc...)

Also while I'm at it, would have been really to nice have the problematic filename in that error message too :)

Glenn Block glennblock was assigned
Mark Cowlishaw

@glennblock please follow up with AzureRT team

Mark Cowlishaw

known issue with csapck

Mark Cowlishaw markcowl closed this
Yaniv Kessler

So that is the solution? "known issue"?

Is there a recommended alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.