GAC on edit process?

这一生的挚爱 提交于 2019-12-06 06:36:21

问题


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 >

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

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


回答1:


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)"

But make sure that gacutil.exe in that path.



来源:https://stackoverflow.com/questions/19135004/gac-on-edit-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!