gpt4 book ai didi

c# - 任务无法使用 SdkToolsPath 找到 "LC.exe"

转载 作者:行者123 更新时间:2023-11-30 22:03:19 25 4
gpt4 key购买 nike

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

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。我怎样才能解决这个问题?谢谢。

最佳答案

如果您使用 MSBuild.exe 从命令行构建项目,您可以将 TargetFrameworkSDKToolsDirectory 作为参数传递,以避免必须编辑 .csproj 文件。例如:MSBuild.exe mysolution.sln/t:build/p:TargetFrameworkSDKToolsDirectory="C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 工具"

关于c# - 任务无法使用 SdkToolsPath 找到 "LC.exe",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26103582/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com