任务失败,因为" LC.exe"升级到Windows 8.1后找不到

时间:2013-11-04 03:21:17

标签: visual-studio-2005 .net-2.0 windows-8.1

我将Windows 8升级到Windows 8.1后构建我的Visual Studio 2005时出错了

这是错误。

    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.

任何人都可以帮助我。

2 个答案:

答案 0 :(得分:3)

将Framework SDK的路径添加到注册表中为我解决了这个问题。

相关密钥位于以下路径之一:

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

我添加了一个名为 SDKInstallRootv2.0 的字符串值,并将其值设置为SDK路径,该路径可能是以下之一:

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

答案 1 :(得分:0)

这在Windows 10中对我有用。

  1. 在命令中键入regedit来打开注册表
  2. 然后导航到 HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ Microsoft.NETFramework
  3. 添加 SDKInstallRootv2.0 字符串值并将其设置为路径 C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ SDK \ v2.0
  4. li>
  5. 保存密钥

我要放置屏幕截图

enter image description here