任务找不到"LC.exe".使用SdkToolsPath [英] Task could not find "LC.exe" using SdkToolsPath

查看:81
本文介绍了任务找不到"LC.exe".使用SdkToolsPath的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用TFS将一个项目克隆到我的计算机上,当我构建该项目时,出现此错误:

I have cloned a project to my computer using TFS, when I build the project I get this error :

错误6任务无法使用SdkToolsPath"或注册表项"HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MicrosoftSDKs \ Windows \ v8.1A \ WinSDK-NetFx40Tools-x86.请确保设置了SdkToolsPath并且该工具存在于正确的处理器中SdkToolsPath下的特定位置,以及MicrosoftWindows SDK已安装

Error 6 Task could not find "LC.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1A\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

我已经在网上搜索了,但是找不到解决方案.我使用VS 2013和.NET 4.我怎样才能解决这个问题?谢谢.

I have searched the web but couldn't find a solution. I use VS 2013 and .NET 4. How can I fix this? Thanks.

推荐答案

http://msdn.microsoft.com/en-us/library/ha0k3c9f(v = vs.110).aspx

许可证编译器读取包含许可证的文本文件信息并生成可以嵌入到文件中的二进制文件公共语言运行时可执行文件作为资源..licx文本文件是Windows窗体设计器自动生成或更新的只要将许可的控件添加到表单中.作为...的一部分编译后,项目系统将转换.licx文本文件转换为提供对.NET支持的.licenses二进制资源控制许可.然后将二进制资源嵌入到项目输出.不是32位和64位之间的交叉编译在构建许可证时使用许可证编译器时支持项目..这是因为许可证编译器必须加载程序集,并不能从32位应用程序加载64位程序集允许,反之亦然.在这种情况下,请使用命令行以手动编译许可证,并指定相应的架构.此工具会自动安装Visual Studio .要运行该工具,请使用开发人员命令提示符"(或Windows 7中的Visual Studio命令提示符).想要查询更多的信息,请参阅Visual Studio命令提示符.

The License Compiler reads text files that contain licensing information and produces a binary file that can be embedded in a common language runtime executable as a resource. A .licx text file is automatically generated or updated by the Windows Forms Designer whenever a licensed control is added to the form. As part of compilation, the project system will transform the .licx text file into a .licenses binary resource that provides support for .NET control licensing. The binary resource will then be embedded in the project output. Cross compilation between 32-bit and 64-bit is not supported when you use the License Compiler when building your project. This is because the License Compiler has to load assemblies, and loading 64-bit assemblies from a 32-bit application is not allowed, and vice versa. In this case, use the License Compiler from the command line to compile the license manually, and specify the corresponding architecture. This tool is automatically installed with Visual Studio. To run the tool, use the Developer Command Prompt (or the Visual Studio Command Prompt in Windows 7). For more information, see Visual Studio Command Prompt.

这篇关于任务找不到"LC.exe".使用SdkToolsPath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆