Error 20 Task failed because "LC.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "LC.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A. You may be able to solve the problem by doing one of the following:  1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5.  2) Install Visual Studio 2008.  3) Manually set the above registry key to the correct location.  4) Pass the correct location into the "ToolPath" parameter of the task. ElongWY
直接用VS2008新建的就没这样的问题,用VS2005建的项目也没问题。

解决方案 »

  1.   

    累,
    我已经找到原因了。可就是不知怎么解决。
    因为我采用了一套控件,所以在其中生成了一个licenses.licx文件,只要我把它删除了,就可以在VS2008下生成成功,要不然就提示上面所示内容。总不能每次生成还得先删除它啊。如何可以一次性解决啊?
      

  2.   

    你電腦裝了c1grid的原因。在項目里把它刪掉就好了。
      

  3.   

    把licenses.licx裏的內容清穿就可以了
      

  4.   

    引用:把licenses.licx裏的內容清穿就可以了
    我试过的,清空不可以,只有删除才可以。
    可是这样子那我的控件布署还能用吗?
    有什么办法处理啊?有哪位高人指定一二。
      

  5.   

    结贴了?
    给你正确的方法
    设置licensex.licx 的build action:none
    这个编译的时候就不管这个文件了