首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读318次
20080710 vs2008 lc.exe

20080710 vs2008 lc.exe
http://www.shengfang.org

错误 67 任务失败,原因是未找到“LC.exe”,或未安装正确的 Microsoft Windows SDK。该任务正在注册表项 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A 的 InstallationFolder 值中指定的位置下的“bin”子目录中查找“LC.exe”。您可以通过执行下列操作之一来解决这一问题:  1) 安装 Microsoft Windows SDK for Windows Server 2008 和 .NET Framework 3.5。  2) 安装 Visual Studio 2008。  3) 将上面的注册表项手动设置到正确的位置。  4) 将正确位置传入任务的“ToolPath”参数。 Platform.Winform

Error 1 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. Cypher1

把水晶报表勾选重装 OK
多了 Microsoft Windows SDK v6.0A

酷睿T5750比P3.0G真是快多了·····

I reinstalled the .NET 3.5 framework, but made no difference.

```````````````````````````````
I did a reinstall using full instead of typical and it works now

Nevermind. I reinstalled the SDK again and it works now.

Problem #3: Cannot find the .NET 2.0 SDK

The first .csproj that get's build gives the following warning early in the build:

    Could not locate the .NET Framework SDK.  The task is looking for the path to the .NET Framework SDK at 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.  2.) Manually set the above registry key to the correct location.

I dutifully checked the registry and found that the required key was missing. Further research reveals that while VS2008 does support builds targeting the 3.0 framework (as does my build), it always builds again the v3.5 framework which ships with the compiler. The compiler just figures out what stuff to leave out so that assemblies targeted for v2.0 or v3.0 still build and run. The problem with my .csproj files is that they are not upgraded to VS2008 (and shouldn't be) and so they are still looking for the old v2.0 SDK folder. That should be an easy fix... I downloaded the .NET 2.0 SDK from Microsoft and installed it. I verified the expected registry key is created and pointing to the installation folder. Good.

Build again. Voila! No more ugly warning. But quickly another failure.

This bug is being resolved as “External”. This means that your issue is being moved from the Visual Studio bug database into the Windows SDK bug database. We will close your original bug. Because the bug databases don’t talk to each other at present, further communications about this issue will need to be in email in order for me to see them. You can post your response here on the Connect, but you must also email me (karinm at microsoft dot com) to ensure I get your communication. I’ll post a response on the Connect Site and email you back directly.

In answer to your issue:

The Windows SDK Configuration Tool works by changing the CurrentInstallFolder value in the registry. VS looks for the "currentInstallFolder" value first in
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SDKs\Windows\
And if that key is missing, if will look next in
HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SDKs\Windows\

The standalone Windows SDK, and the Windows SDK content embedded in Visual Studio sets both keys, but in your situation it appears that the SDK Configuration Tool might only be updating HKEY_LOCAL_MACHINE. Therefore, whichever SDK was installed last will be the one set in the CurrentInstallFolder. Using the SDK Configuration Tool will have no effect.

The workaround is to update HKEY_CURRENT_USER to point to the version of the SDK that you wish to build with:

1.     HKEY_CURRENT_USER\Software\Microsoft\Microsoft SDKs\Windows\ CurrentInstallFolder = C:\Program Files\Microsoft SDKs\Windows \v6.0A\ to build with the Windows SDK content included in VS2008; or
2.     HKEY_CURRENT_USER\Software\Microsoft\Microsoft SDKs\Windows\ CurrentInstallFolder = C:\Program Files\Microsoft SDKs\Windows \v6.1\ to build with the Windows SDK content included in the Windows SDK for Server 2008.

Please give this a try and let me know if it fixes your issue. Please contact me directly at karinm at microsoft dot com.


The Windows SDK for Windows Server® 2008 and .NET Framework 3.5 provides documentation, samples, header files, libraries, and tools designed to help you develop Windows applications using both native (Win32®) and managed (.NET Framework) technologies.

The .NET Framework 3.5 is still based on CLR 2.0 + updates that 3.5 ships with it. .NET Framework 3.5 ships with Express, but you can get it stand alone with the compilers (without IDE integration until Visual Studio 2008) by downloading it from: http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en

So the only thing which seemed to work is re-installing the SDK again. It can be found here.

http://www.microsoft.com/downloads/details.aspx?FamilyId=74DD6E2D-89C6-4E1E-AF00-FC7D70F15439&displaylang=en

   1.

      Correct link

      http://blogs.msdn.com/windowssdk/archive/2008/02/07/windows-sdk-rtms.aspx
      http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en
      http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en

一、如果使用MSBuild任务的话,需要把ThoughtWorks.CruiseControl.MSBuild.dll文件拷贝到工作目录下才能正常编译。
二、如果提示找不到LC.exe,(在没有安装Vs 2005的机器执行每日构建)需要把lc.exe(在有安装VS 2005的安装目录下的Microsoft Visual Studio 8\SDK\v2.0\Bin)拷贝到对应的Microsoft Visual Studio 8\SDK\v2.0\Bin目录下,然后修改注册表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\. NETFramework 下新增一个字符串值SDKInstallRootv2.0 指向系统目录的Microsoft Visual Studio 8\SDK\v2.0 目录(不能到bin目录)
三、使用VSS做为源码服务器必须安装VSS客户端。

***EndOfSession***[07/08/08,19:20:41] MSITOSIT: [2] ERROR processed; exception was thrown for retail build
 Developer Comment:  :  has no associated directory, verify the Feature table is correct


字体:


Permanant URI永久地址 http://www.shengfang.org/blog/p/20080710vs2008lcexe.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1235216942

2009年2月21日19:49星期六  [Info资料] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1887
在线: 17||用户: 2579 [列表]
今日:638||到访:2931356
Rss:||评论:1609

最新日志

最新评论

友情链接

日历
2008 - 08
     12
3456789
10111213141516
17181920212223
24252627282930
31      

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8