Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 .net exe,它指的是另一个 .net 程序集。我的问题是在部署期间,我们应该使用 REGASM 注册程序集,还是应该将 dll 复制到 exe 代码的 Bin 文件夹中?我是这方面的初学者,所以如果我混淆了术语,请原谅。
你不会使用 REGASM。那是为了注册 COM DLL。
包含引用的最简单方法是将其包含在文件夹中。
如果您要在多个项目之间共享该引用的 DLL,您拥有的另一个选择是在全局程序集缓存 (GAC) 中注册它。