如何注销使用 regasm 注册的程序集 [英] How to unregister the assembly registered using regasm
问题描述
我使用 regasm 在开发机器上注册了我的一个 dll,如下所示(ASP 应用程序)
I registered one of my dlls on the development machine using regasm as below (ASP application)
在 cmd 提示符下,我导航到C:WINDOWSMicrosoft.NETFrameworkv2.0.50727 并做了:
In a cmd prompt, I navigated to C:WINDOWSMicrosoft.NETFrameworkv2.0.50727 and did:
regasm /tlb "xxx.dll"
现在我对 dll 进行了一些更改.所以我使用以下命令注销了 dll:
Now I made some changes in the dll. So I unregistered the dll using the command:
regasm /u xxx.dll /tlb:xxx.tlb
然后我用之前的命令再次注册了更新的 dll.但是项目中没有出现变化,所以我怀疑它是否仍然指向旧的 dll.我重新启动了机器,但这并没有帮助.所以:
Then I registered the updated dll again with previous command. But the changes are not coming up in the project, so I doubt it's still pointing to the old dll. I restarted the machine, but that did not help. So:
- 有什么方法可以确保我的旧 dll 被删除并且当前的 dll 是新的?
- 是否有任何物理路径可以手动检查它们?
更新:以下解决方案解决了该问题.
UPDATE: The below solution fixed the issue.
注册:
SET WorkFolder= '<directory>'
regasm.exe %WorkFolder%xxx.dll /Codebase
注销.
SET WorkFolder= '<directory>'
regasm.exe /unregister %WorkFolder%xxx.dll
推荐答案
试试
regasm /u "[full path to your DLL in double quotes]"
重新注册使用
regasm /codebase "[full path to your DLL in double quotes]"
忽略警告.
这篇关于如何注销使用 regasm 注册的程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!