dll中没有命名空间就不能引用吗?

Abib 2002-05-28 09:22:52
我将一个调用webservice的.cs文件编译成.dll文件,用wsdl工具生成的.cs文件中没有命名空间,我把.dll放在bin目录下,可是就是不能引用其中的类,怎么办?
...全文
94 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
jhnhu 2002-05-29
  • 打赏
  • 举报
回复
按Ctrl+Alt+J 打开Object Browser Windows
这里可以看到此solution中的所有类
菜单是 View -> Other Window -> Object Browser
qqchen79 2002-05-29
  • 打赏
  • 举报
回复
看看:
http://www.csdn.net/develop/read_article.asp?id=13801
文章的Script有点bug,copy/paste出来看吧。
Abib 2002-05-28
  • 打赏
  • 举报
回复
奇怪的是在VS.net环境的Solution Explorer中看到了引用,但是并没有自动添加using指令,那么这些记录在哪呢?
Abib 2002-05-28
  • 打赏
  • 举报
回复
引入了,但是引用的时候出错
F:\interpub\TestDll\bin\Master.dll Referenced class 'Master' has base class or interface 'System.Web.Services.Protocols.SoapHttpClientProtocol' defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Services'.
噢,我忘了添加到System.Web.Services.dll的引用
添加上以后就好了
lonk 2002-05-28
  • 打赏
  • 举报
回复
add reference,把dll引进来看看

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧