On compilation I receive error for LC.EXE
The specified task executable "LC.exe" could not be run. The filename or extension is too long
This error occurs when I compile my unit test project. Of the google tricks I've seen, nothing has worked.
This started today. There's hardly anything in source control history. The changes all have to do with AssemblyInfo.cs
where a 3rd party utility increments our version #'s.
UPDATE
Looking out my output window the command line call to LC.EXE is HUGE
CompileLicxFiles:C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\LC.exe /target:BuildAll.Tests.dll /complist:Properties\licenses.licx /outdir:obj\Debug\ /i:C:\
There's 100's of /i
params...
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
I changed the value of the property Build Action
from EmbeddedResource
to None
on the file licenses.licx
. It solved the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With