在运行"regasm"时,每次PC重新启动时发出命令 [英] Run "regasm" command every time pc restarts

查看:92
本文介绍了在运行"regasm"时,每次PC重新启动时发出命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个vbscript文件,在其中我需要从用vb.net编写的程序集中创建一个对象.我使用"regasm"命令将程序集注册到全局缓存后,便可以成功使用该对象. VS命令提示符中的命令.

I've a vbscript file, in which I need to create an object from an assembly written in vb.net. I can successfully use the object after I register my assembly to the Global Cache using the "regasm" command from the VS Command Prompt.

这里的问题是,每当我重新启动我的PC时,vbscript都无法识别GAC对象(我猜我关闭PC时我的程序集会取消注册).因此,每次我重新启动PC时,我都需要注册该程序集.这是非常令人沮丧和不必要的. 我想解决这个问题.

The issue here is, whenever I restart my pc, the vbscript fails to recognize the GAC object (I guess my assembly gets unregistered when I shut my pc down). So every time I restart my pc I need to register the assembly. This is quite frustrating and unnecessary. I'd like to get around this problem.

谢谢!

 

此致

Dhrumil Patel

Dhrumil Patel

推荐答案

我认为正在讨论类似的问题

I think similar kind of problem is being discussed here. Please look into this.

-Mohammed Ghouse Ibne Barq Kadapavi
http://www.ProgrammersVision.blogspot.com
https://sites.google.com/site/BarqKadapavi
请标记回答您问题的帖子为答案,并将其他有用的帖子标记为有用.

-Mohammed Ghouse Ibne Barq Kadapavi
http://www.ProgrammersVision.blogspot.com
https://sites.google.com/site/BarqKadapavi
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.

 

 


这篇关于在运行"regasm"时,每次PC重新启动时发出命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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