确定所有引用的程序集 [英] Determine all referenced assemblies

查看:78
本文介绍了确定所有引用的程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要确定一个特定的.NET Compact Framework程序集引用的所有程序集。你认为这是可能的塞西尔?

I need to determine all assemblies referenced by a certain .NET Compact Framework assembly. Do you think this is possible with Cecil?

这样,我们的部署工具能够自动地解决我们的.NET Compact Framework应用程序的所有依赖。

This way our deployment tools could automatically resolve all dependencies of our .NET Compact Framework applications.

推荐答案

即使没有塞西尔,你应该能够与<一做href="http://msdn.microsoft.com/en-us/library/system.reflection.assembly.getreferencedassemblies.aspx"相对=nofollow> Assembly.GetReferencedAssemblies 。尽管这不是支持的CF本身(据我可以告诉),它应该是罚款,如果你部署工具是服务器端。

Even without Cecil you should be able to do it with Assembly.GetReferencedAssemblies. Even though that's not supported on the CF itself (as far as I can tell) it should be fine if your deployment tools are server-side.

这篇关于确定所有引用的程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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