Sunday, February 12, 2017

Getting error while generating azure package || Azure Package & Config file generation

Getting error while generating azure package


  1. 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. C:\Program Files (x86)\MSBuild\Microsoft\Cloud Service\1.0\Visual Studio 10.0\Microsoft.cloud service.targets 202 5 FileSystemCreator
  2. Rename the folder where the project is present with a shorter name.
Follow the below procedure to Fix:
  1. Go to the Cloud Service project folder.
  2. Edit the user cloud service options file (*.ccproj file) in notepad. 
  3. Add the ServiceOutputDirectory element with the value "c:\azure" for example.
  4. Open the solution in Visual Studio again and the error has gone.
  5. Example: