检测Mobile SDK 5、6 [英] Detect Mobile SDK 5, 6

查看:82
本文介绍了检测Mobile SDK 5、6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种方法来检测计算机上是否安装了Mobile SDK 5、6.
很可能我需要在注册表中找到一个键;

I need way how can I detect if Mobile SDK 5, 6 is installed on the Computer or not.
Most probably I need to find a key in the registry;

推荐答案

您要达到什么目的?如果您正在运行.NET应用程序,则无需检查,引用的类在程序集中就足够了.如果您专门针对SDK6;那么您可以在仅在SDK6中的程序集上进行的调用上使用try {} catch {}.另一种方法是使用Reflection并找到您要在计算机上寻找的GAC.
What are you trying to achieve? If you are running a .NET applicaton then you need not check, the classes that you have referenced will be sufficient in the assembly. If you are targetting for SDK6 specifically; then you can us a try {} catch {} on the calls that you are making on assemblies that are only in SDK6. Other way is to use Reflection and find out the GAC that you are looking for on the machine.


这篇关于检测Mobile SDK 5、6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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