I am using Visual Studio 2013 with an asp.net project. One of the projects gives an error below. Why is he looking for LC.exe in the wrong way? My Windows 8.1 SDK is installed and I have lc.exe on
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
and 64-bit version, and I have a registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1A
I am considering Microsoft.Common.targets under C:\Windows\Microsoft.NET\Framework\v4.0.30319 , and this key exists: SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" . Then looked at Microsoft.NetFramework.CurrentVersion.props under
C:\Program Files (x86)\MSBuild\12.0\Bin
and TargetFrameworkSDKToolsDirectory defined in $SDK40ToolsPath . According to MSBuild /v:diag ,
SDK40ToolsPath = C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
which looks good. Project goal in VS in .NET 4.0.
So why is he still looking for the wrong folder or registry key? Interestingly, when I rebuild the project after receiving an error message, the project is being built perfectly.
Error 5 Task could not find "LC.exe" using the SdkToolsPath "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 2428 5 SuperReports
source share