Visual Studio 2010 .Net 4.0中的ToolPath属性 [英] ToolPath property in Visual Studio 2010 .Net 4.0

查看:252
本文介绍了Visual Studio 2010 .Net 4.0中的ToolPath属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在VC#4.0项目的预生成事件中使用$(ToolPath)tlbimp.exe.
我收到此构建错误-
无法将"D:\ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ tlbimp.exe"识别为内部或外部命令,可操作程序或批处理文件.
C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets(902,9):错误MSB3073:命令.....退出,代码为9009.
..."

我在C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v7.0A \ Bin目录下找到tlbimp.exe 似乎$(ToolPath)属性指向错误的路径.
运行vcvars32或vsvars32.bat没有帮助.
正确的设置方法是什么?

提前谢谢!

Hi,

I am using $(ToolPath)tlbimp.exe in the pre-build event for VC# 4.0 project.
I get this build error -
"D:\Microsoft Visual Studio 10.0\Common7\IDE\tlbimp.exe"'' is not recognized as an internal or external command, operable program or batch file.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(902,9): error MSB3073: The command ....." exited with code 9009.
..."

I found tlbimp.exe under C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin directory
It looks like $(ToolPath) property is pointing to wrong path.
Running vcvars32 or vsvars32.bat did not help.
What is the correct way to set it?

Thanks in advance!

推荐答案

(ToolPath)tlbimp.exe在VC#4.0项目的预构建事件中. 我收到此构建错误-
无法将"D:\ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ tlbimp.exe"识别为内部或外部命令,可操作程序或批处理文件.
C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets(902,9):错误MSB3073:命令.....退出,代码为9009.
..."

我在C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v7.0A \ Bin目录下找到tlbimp.exe 看起来
(ToolPath)tlbimp.exe in the pre-build event for VC# 4.0 project.
I get this build error -
"D:\Microsoft Visual Studio 10.0\Common7\IDE\tlbimp.exe"'' is not recognized as an internal or external command, operable program or batch file.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(902,9): error MSB3073: The command ....." exited with code 9009.
..."

I found tlbimp.exe under C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin directory
It looks like


(ToolPath)属性指向错误的路径.
运行vcvars32或vsvars32.bat没有帮助.
正确的设置方法是什么?

预先感谢!
(ToolPath) property is pointing to wrong path.
Running vcvars32 or vsvars32.bat did not help.
What is the correct way to set it?

Thanks in advance!


这篇关于Visual Studio 2010 .Net 4.0中的ToolPath属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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