[Fixed] Task could not find “LC.exe” using the SdkToolsPath

In this article, I’m going to show How I fixed the above-mentioned error while publishing code with Team City continuous integration.

So I was configuring the team city for continuous integration while building the code I found the weird error and I was stuck at this error almost 2 days. As per the documentation, we don’t need to install the Visual Studio at the code build machine as you can just copy the MSBuild files from your local and paste on the same path over the code building machine.

I tried the same like copied the files from below path. It’s for Visual Studio 2015 so I’m getting folder v14.0. If you working with a higher version or lower version that folder will be different.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0

But that copy and paste folder don’t help me as it needs some registry values of the system to update as well.

After a lot of struggle, I have to install the Visual Studio 2015 Community version on the build machine and that worked like charm.

It may be not the best solution, But I tried best practices as well, but that didn’t help me at all. So I have to go this way.

Cheers..!

Posted by | View Post | View Group