关于Target文件抛出异常的理解:target(xx,xx)

泰勒公式 2013-04-24 10:36:32
大侠们,最近build过程中碰到这么个问题:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(2015,5): error MSB3091: Task failed because "AxImp.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "AxImp.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\v8.0A\WinSDK-NetFx40Tools-x86. You may be able to solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK. 2) Install Visual Studio 2010. 3) Manually set the above registry key to the correct location. 4) Pass the correct location into the "ToolPath" parameter of the task.

这边提示targets(2015,5)出错,我就找到了改文件,但发现这个文件没有2015行,那么这边的(2015,5)该怎么理解呢?
...全文
569 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
sqlchen 2013-05-03
  • 打赏
  • 举报
回复
Microsoft.Common.targets文件不需要修改,是你的开发环境出问题了(缺少AxImp.exe) 提示写得很清楚,这样解决: 1.安装Microsoft Windows SDK 2.安装Visual Studio 2010 3.手工修正注册表 建议:如果你确认装过Microsoft Windows SDK 和 Visual Studio 2010,你可以先本地搜一下“AxImp.exe”,记下文件路径,把注册表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86中的键值更新下。

17,748

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET Framework
社区管理员
  • .NET Framework社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧