关于Target文件抛出异常的理解:target(xx,xx)
大侠们,最近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)该怎么理解呢? msbuild target windows SDK --------------------编程问答-------------------- 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中的键值更新下。
补充:.NET技术 , .NET Framework