本文介绍了...命名空间'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!
另见 vbcity/forums/t/161172.aspx [ ^ ]。 查看解决方案中所有项目的目标框架。 See also vbcity/forums/t/161172.aspx[^]. Look at the target framework of all of the "projects" in your "solution".
更多推荐
...命名空间'Microsoft.Office.Interop.Excel'中含糊不清
发布评论