命名空间和导入问题 [英] Namespace and Import problems

查看:107
本文介绍了命名空间和导入问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在添加Crystal Decision和Microsoft Office参考时遇到问题.我有DLL等,我添加了它们,但似乎无济于事.好像他们不在那里.
进行常规项目添加参考等.

一个例子是

导入CrystalDecisions.CrystalReports.Engine
导入CrystalDecisions.ReportSource
导入CrystalDecisions.Shared

我收到消息了....

导入"CrystalDecisions等"中指定的命名空间或类型不包含任何公共成员,或者找不到.

任何想法,我要去哪里错了.这是通常的,它曾经可以工作.在VB.Net 2005和2008上都进行了尝试.

在此先感谢

Hi,

I am having problems adding Crystal Decision and Microsoft Office references. I have the DLLs etc, I add them but nothing seems to work. As if they were not there.
Doing the usual Project Add References etc.

An example is

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Shared

I get the message....

Namespace or type specified in the Imports ''CrystalDecisions etc'' doesn''t contain any public member or cannot be found.

Any ideas where I am going wrong. It is the usual, it used to work. Tried with both VB.Net 2005 and 2008.

Thanks in advance

推荐答案

使用Imports不会在项目中添加对DLL的引用-只是意味着您不需要键入完整的名称空间. br/> 检查是否已在解决方案资源管理器"窗格中添加了适当的项目引用.
Using Imports does not add a reference to the DLL in the project - it just means you don''t need to type the full namespace.
Check you have added the appropriate project references in the Solution Explorer pane.


这篇关于命名空间和导入问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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