Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Build error - "The specified path, file name, or both are too long..."

I'm writing the Custom Activities of build process template. I got the below issue when build the activity.

>XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type 'System.IO.PathTooLongException' :  '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.'.

Do you have any ideas? Please help!

like image 352
Hoang Nguyen Avatar asked Jan 20 '14 04:01

Hoang Nguyen


1 Answers

I find one tip here. Hope it might be helpful to you.

Currently there are a two workarounds:

Reduce the namespace in workflow x:Class property. This makes the generated file have a shorter name.

Use the subst or mklink command to create mapping so that the path the solution is located in becomes a lot smaller. In team build, the workspace mapping needs to be modified equally.

like image 92
Nam G VU Avatar answered Sep 30 '22 16:09

Nam G VU