在多工程解决方案如何由一个工程调用另一个工程的类而不是DLL等

killertang 2003-11-29 09:03:14
在我的工程中,有一个主工程,还有一些其他工程用来测试主工程中编写好的类
但是我无法在另一个工程中,调用主工程的类,请问高手有解决方案么?
...全文
29 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
MH2o 2003-11-29
  • 打赏
  • 举报
回复
在C#中有命名空间的定义!你要引用一个类首先要先using 该类的命名空间之后就可以正常使用这个类了!
NetAnt007 2003-11-29
  • 打赏
  • 举报
回复
直接引用DLL有什么不好那,
好像不知道。我都是引用工程DLL
维她奶 2003-11-29
  • 打赏
  • 举报
回复
up
saucer 2003-11-29
  • 打赏
  • 举报
回复
in Solution Explorer, add a reference to your 主工程 project, then use the classes, but at the end of the day, the other projects use the classes in the 主工程's assembly DLL, not source code
o1o 2003-11-29
  • 打赏
  • 举报
回复
我有时候一个工程有五六个项目,也没考虑过是否应该那样做。
ArLi2003 2003-11-29
  • 打赏
  • 举报
回复
添加现有项目

选中InputForm.cs

不要点open 而点右边的下拉箭头,选 link file (中文版为链接文件)
LiSDN 2003-11-29
  • 打赏
  • 举报
回复
一個project有至少一個DLL,
simanh 2003-11-29
  • 打赏
  • 举报
回复
up
saucer 2003-11-29
  • 打赏
  • 举报
回复
add a reference to the project on the second tab, instead of to an assembly dll
killertang 2003-11-29
  • 打赏
  • 举报
回复
但是到哪里找到那个主工程的assembly DLL,还是我要把我的主工程修改成DLL类型编译
killertang 2003-11-29
  • 打赏
  • 举报
回复
谢谢思归兄,

110,537

社区成员

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

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

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