GAC是否在编辑过程中? [英] GAC on edit process?

查看:67
本文介绍了GAC是否在编辑过程中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我对库类进行编辑时,我都会对其进行编译以获取更新的DLL. 但是为了获得对使用此库的项目的有效编辑,我必须执行以下命令:

Every time I do an edit on my Library Class, I compile it for get the updated DLL. But for get the effective edit on the project which uses this Library, I have to do the command :

gacutil –I <assembly name >

并回收池.回收池可以,但是我可以自动执行gacutil的过程吗?

and recycle the pool. Recycling the pool can be ok, but can I automate that process of gacutil?

在VS上有办法还是没有解决办法?我每次都需要这样做吗?

Is there a way on VS or no solution? I need to do this every time?

推荐答案

如果您继续更新该项目,在这种情况下,您可以使用以下构建后的事件将构建事件自动添加到该特定项目的GAC中.属性,您就可以将以下构建后事件添加到GAC中,即修改后的dll.Just copy and past following line with zero modification

If you keep updating that project, In that case you can add build event to GAC automatically on that particular project using following post built event.Under Build Event in project properties just you can add the following post build event to GAC your modified dll.Just copy and past following line with zero modification

  "%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64\gacutil.exe" /i "$(TargetPath)"

但是请确保该路径中的gacutil.exe.

But make sure that gacutil.exe in that path.

这篇关于GAC是否在编辑过程中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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