The specified task executable "LC.exe" could not be run

Kiran Srikanta picture Kiran Srikanta · Feb 6, 2013 · Viewed 7.4k times · Source

I am developing a SharePoint 2013 solution using VS 2012, the solution has a licx file. I get a compile time error and a warning.

Error: The specified task executable "LC.exe" could not be run. The filename or extension is too long

Warning: The command-line for the "LC" task is too long. Command-lines longer than 32000 characters are likely to fail. Try reducing the length of the command-line by breaking down the call to "LC" into multiple calls with fewer parameters per call.

I have tried the lc.exe.config has <startup useLegacyV2RuntimeActivationPolicy="true"> I also tried moving the solution to "C:\", was earlier in the Projects folder.

I am still unable to resolve this error.

Answer

zchpit picture zchpit · Jul 23, 2013

There is MS Support workaround:

when you build the project , delete the Licence file from the project everytime you get this error , just delete the licence file

https://connect.microsoft.com/VisualStudio/feedback/details/779433/lc-exe-task-command-line-too-long