How to find regasm location on a machine

微笑、不失礼 提交于 2020-01-25 00:39:27

问题


I am creating an installer that registers .NET assemblies to COM using regasm. Different clients will have different Microsoft.Net versions installed on their machines. I need to know the regasm location in advance to use it.

Should I look for it only in the following locations or is there any other possible location too?

C:\Windows\Microsoft.NET\Framework\v2.0.50727\ C:\Windows\Microsoft.NET\Framework\v1.0.xxx\ C:\Windows\Microsoft.NET\Framework\v4.0.xxxx\

Could it instead be present in the following location?

C:\Windows\Microsoft.NET**Framework64**\vx.x.x


回答1:


Yes, it's in both folders.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe C:\Windows\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe



来源:https://stackoverflow.com/questions/48393660/how-to-find-regasm-location-on-a-machine

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