Forum Discussion
AppAttach and Package Name length
If the original MSIX package name is too long, the staging will fail due to file path length limitations.
This limit seems to come into play with the junction point.
If "C:\temp\AppAtach\" is used as a base folder, that is 18 characters.
If the MSIX Packaging Tool was used to create the initial package with a Package Name of "N" characters, this results in a package root folder equivalent of 18 + 3*(N+31).
This leaves around 47 characters for the original package name.
I am writing this for two reasons:
- To warn folks now.
- To suggest that this is unnecessarily limiting and perhaps the 3*(N+31) might get addressed in the product before GA.
- Stefan GeorgievMicrosoft
TIMOTHY_MANGAN looking to leverage you expertise here. What if in the product version we do not need a junction?
Stefan Georgiev It looks to me like that would knock things down to 2*(N+31), which should be fine for most folks.
We may need to advise shorter package names overall anyway unless/until the MSIX runtime injects the longer \\?\\C:\Program Files\WindowsApps\(N)\VFS style longer paths on all File API calls.
Tim