Task failed because “LC.exe” was not found after upgrade to Windows 8.1

回眸只為那壹抹淺笑 提交于 2020-01-14 01:43:28

问题


i have an error building my Visual Studio 2005 after i upgrade my windows 8 to windows 8.1

here's the error.

    Task failed because "LC.exe" was not found, or the .NET Framework SDK v2.0 is not installed.  The task is looking for "LC.exe" in the "bin" subdirectory beneath the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework.  You may be able to solve the problem by doing one of the following:  
    1.) Install the .NET Framework SDK v2.0.  
    2.) Manually set the above registry key to the correct location.  
    3.) Pass the correct location into the "ToolPath" parameter of the task.

can anyone help me.


回答1:


Adding the path to the Framework SDK into the registry solved it for me.

The relevant key is located under one of these paths:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NET\Framework (32 Bit)
  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft.NETFramework (64 Bit)

I added a string value named SDKInstallRootv2.0 and set its value to the SDK path, which is probably one of the following:

  • C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0
  • C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0



回答2:


This worked for me in Windows 10.

  1. Type regedit in command to open registry
  2. Then navigate to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft.NETFramework
  3. Add SDKInstallRootv2.0 string value and set it to path C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0.
  4. Save the key

I am putting the screenshot



来源:https://stackoverflow.com/questions/19761155/task-failed-because-lc-exe-was-not-found-after-upgrade-to-windows-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!