Monday, August 24, 2009

lc.exe exited with code -1 and how to fix it

LC.EXE is the Visual Studio license compiler. It compiles licenses and includes them in the assembly resources. The license compiler returns -1 when a licensed component is removed.

Fix:
Under the Properties Folder in the Project folder you find the file licenses.licx. You must open this file and remove the reference to the component. And you must remove the Reference in the assembly references as well. After that the project will compile without an error.

1 comments:

Alcibiade said...

thnks a lot;)
it helped me