...命名空间'Microsoft.Office.Interop.Excel'中含糊不清 [英] ...is ambiguous in the namespace 'Microsoft.Office.Interop.Excel'

查看:122
本文介绍了...命名空间'Microsoft.Office.Interop.Excel'中含糊不清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试将带有Framework 2.0的项目转换为Frameowrk 4.0,并且我遇到了那些错误的'...是暧昧的namespace'Microsoft.Office.Interop.Excel''。这是指应用程序,工作簿,工作表。我试图删除引用并重新添加,但问题仍然没有解决。



有谁知道怎么办?



谢谢!

Hi,

I am trying to convert a project with Framework 2.0 to Frameowrk 4.0, and I come into those errors of '...is ambiguous in the namespace 'Microsoft.Office.Interop.Excel''. This is referring to Application, Workbook, Worksheet. I tried to delete the reference and re-add, but still the problems are not fixed.

Does anyone know how to do about it?

Thanks!

推荐答案

尝试删除obj和bin文件夹中的文件。旧版本可能仍然存在。



祝你好运!
Try to delete the files in the obj and bin folder. An older version might still persist there.

Good luck!


另见 http://vbcity.com/forums/t/161172.aspx [ ^ ]。

查看解决方案中所有项目的目标框架。
See also http://vbcity.com/forums/t/161172.aspx[^].
Look at the target framework of all of the "projects" in your "solution".


这篇关于...命名空间'Microsoft.Office.Interop.Excel'中含糊不清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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