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.
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.