Build package Azure 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.

Right click on Azure project, choose "Package", select "local" in "Service Configuration" and "release" in "Build Configuration"

Click "Package" and get the following 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 solution is copying/moving the project to other parent folder (shorter), for example:
Current project folder: D:\Projects\ABCCompany\Applications\ABC.XXX.WebApp\
Copying/moving to D:\Projects\

Rebuild the project again. It should work!


Comments