简体   繁体   中英

Visual Studio 2015 Community Edition: Error „lc.exe exited with code -1“

I try to use an old VS project with an external assembly.

I read that lc.exe is for licensing of external assemblies and most likely the license is no longer valid. I tried to install a trial of the external assembly, but the problem is still the same.

This error is quite common: How to fix build error in Visual Studio: '"LC.exe" exited with code -1' and many other google results tell to delete the licenses.licx file which will be regenerated during the next build – it is not regenerated during build in my project.

Is there any more detailed report of LC.exe then "error code -1"?

I have no idea how to handle this error.

EDIT:

The more detailed error is:

"licenses.licx(1): error LC0003: Unable to resolve type '', ''

where '', '' are the names of the components which I installed as a trial.

The solution I found is to throw the old 'licenses.licx' file out. I do this by manually deleting the file in the "Properties" folder of my project and removing the line referencing it in the *.csproj-file.

Look at this blog-post here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM