Microsoft.WindowsAzure.targets "The specified path, file name, or both are too long."

I am trying to publish a project in Windows Azure, but I get an error in the generated Microsoft.WindowsAzure.targets file related to the path length and file names. How to determine which one is the problem path or file name. The error is related to the tag "" in the generated file thanks to Martin

+4
source share
2 answers

Already an old post - did you check this post? Path of too long error while building azure windows service

This may change your problem.

+4
source

Since this is still a problem for me over the years, and this does not apply to Azure SDK v2.8, I was able to solve it by creating a symbolic link to the folder of my projects. Open a command prompt as an administrator and run this:

mklink /DC:\Dev C:\Users\danzo\Source\Workspaces 

Obviously, you can change "C: \ Dev" to whatever you want, and you will need to change the longer path above to the root directory of your soltions / projects folder.

0
source

All Articles