Windows has that boring thing, the "Maximum Path Length Limitation". That can be a terrible headache when you are dealing with Azure Cloud Service deploy.
If you create your projects in the Visual Studio default folder (C:\Users\USER\Documents\Visual Studio 2013\Projects) or in a longer path, probably you already have faced the 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."
To fix this:
- Go to the Cloud Service project folder.
- Edit the user cloud service options file (*.ccproj file) in notepad.
- Add the ServiceOutputDirectory element with the value "c:\azure" for example.
- Open the solution in Visual Studio again and the error has gone.
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Name>WorkerRole</Name> <ServiceOutputDirectory>c:\azure\</ServiceOutputDirectory> </PropertyGroup> </Project>
Hope this helps.comments powered by Disqus