如何找到私人集会 [英] how to find private assembly

查看:113
本文介绍了如何找到私人集会的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


请告诉我如何动态查找指定路径中是​​否已存在具有指定版本的指定私有组件.请在c#.net


please tell me how to find dynamically whether the specified private assemly with specified version is already exist or not in a perticular path. please give me code in c#.net

推荐答案

中给我代码.我们不简单地给您代码.我们帮助您解决代码中的问题.
您可以使用System.Reflection命名空间,更具体地说,可以使用System.Reflection.Assembly类来执行所需的操作.

是该类的MSDN文档.
打开程序集后,您只需要调用version属性并验证它是否是您想要的.
It doesn''t work that way. We don''t simple give you code. We help you with problems in your code.
You can use the System.Reflection namespace, and more specifically the System.Reflection.Assembly class to do what you want.

This is the MSDN documentation for the class.
After opening the assembly you just have to call the version property and validate that it is what you want.


这篇关于如何找到私人集会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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