[英]How can I add a dll reference in C# without problems?
I'm kinda new at this, this is my first question here, but here it goes.我对此有点陌生,这是我在这里的第一个问题,但就在这里。
I've got a server and a client using TcpListenet and TcpClient, I also created a Class Library where I have my shared classes, I have already added the reference for this class in both the server and the client projects, I've also added the "using" statement to import this class.我有一个使用 TcpListenet 和 TcpClient 的服务器和一个客户端,我还创建了一个 Class 库,其中有我的共享类,我已经在服务器和客户端项目中添加了这个 class 的参考,我还添加了“使用”语句导入此 class。 When I run both the client and the server on VS it works just fine, hoewever, when I try to test using multiple clients by opening the client.exe files, I get an error saying that my library could not be found, and also this: Set the register value set the registry value [HKLM\Software\Microsoft\Fusion.EnableLog] (DWORD) to 1.
当我在 VS 上同时运行客户端和服务器时,它工作得很好,但是,当我尝试通过打开 client.exe 文件来测试使用多个客户端时,我收到一条错误消息,提示找不到我的库,还有这个: 设置寄存器值 设置注册表值 [HKLM\Software\Microsoft\Fusion.EnableLog] (DWORD) 为 1。
I'm not sure why it works by running it on VS but not by executing the.exe files.我不确定为什么它通过在 VS 上运行而不是通过执行 .exe 文件来工作。 Please help me.
请帮我。
You have two options here:您在这里有两个选择:
DLL
to Global Assembly Cache(GAC)DLL
放入全局程序集缓存(GAC)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.