Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 541
Kiran Srikanta Avatar asked Feb 06 '13 06:02

Kiran Srikanta


1 Answers

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

like image 68
zchpit Avatar answered Oct 02 '22 22:10

zchpit