如何注销使用regasm注册的程序集 [英] How to unregister the assembly registered using regasm

查看:1186
本文介绍了如何注销使用regasm注册的程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发机器上注册了一个使用regasm的DLL,如下所示(ASP应用程序)



在cmd提示符下,我导航到
C: \WINDOWS\Microsoft.NET\Framework\v2.0.50727,并做了:

  regasm / tlbxxx.dll 

现在我在dll中进行了一些更改。所以我使用以下命令注销了dll:

  regasm / u xxx.dll /tlb:xxx.tlb 

然后我用以前的命令再次注册了更新的DLL。但是,项目中并没有出现变化,所以我怀疑它仍然指向旧的dll。我重新启动了机器,但没有帮助。
所以:


  1. 有什么方法可以确保我的旧版本被删除,目前的新版本是新的? >
  2. 是否有任何物理路径手动检查?

更新:以下解决方案解决了这个问题。



要注册:

  SET WorkFolder ='< directory>'
regasm.exe%WorkFolder%\xxx.dll / Codebase

要注销。

  SET WorkFolder ='< directory>'
regasm.exe / unregister% WorkFolder%\xxx.dll


解决方案

尝试

  regasm / u[双引号的DLL的完整路径]

要重新注册使用

  regasm / codebase[full路径到您的DLL双引号]

忽略警告。


I registered one of my dlls on the development machine using regasm as below (ASP application)

In a cmd prompt, I navigated to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and did:

regasm /tlb "xxx.dll"

Now I made some changes in the dll. So I unregistered the dll using the command:

regasm /u xxx.dll /tlb:xxx.tlb

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:

  1. What are the ways to make sure my old dll is removed and the current one is new?
  2. Is there any physical path to check them manually?

UPDATE: The below solution fixed the issue.

To Register:

SET WorkFolder= '<directory>'
regasm.exe %WorkFolder%\xxx.dll /Codebase

To unregister.

SET WorkFolder= '<directory>'
regasm.exe /unregister %WorkFolder%\xxx.dll

解决方案

Try

regasm /u "[full path to your DLL in double quotes]"

To re-register use

regasm /codebase "[full path to your DLL in double quotes]"

ignore the warning.

这篇关于如何注销使用regasm注册的程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆