简体   繁体   English

我如何知道给定.NET程序集所针对的平台?

[英]How do I know which platform a given .NET assembly targets?

In my C# project I add a reference to a COM object and an interop assembly is generated. 在我的C#项目中,我添加了对COM对象的引用,并生成了一个interop程序集。

How do I know which platform (x86, x64, AnyCpu) this interop assembly targets? 我怎么知道这个互操作程序集所针对的平台(x86,x64,AnyCpu)?

You could use CorFlags.exe, see the MSDN link. 您可以使用CorFlags.exe,请参阅MSDN链接。 (Run from the VS command line, just point it to your assembly) (从VS命令行运行,只需将其指向程序集)
EDIT: Here's another link with more info than MSDN 编辑:这是另一个链接比MSDN更多的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何知道哪个程序集包含给定的命名空间? - C# - How can I know which assembly contains a given namespace? - C# 如果给定的程序集是正确的,CLR如何知道? - How does the CLR know which if the given assembly is the correct one? 将.NET程序集编译为给定的目标平台二进制文件 - Compiling a .NET assembly into given target platform binary 为什么我的 .NET 框架应用程序会寻找错误版本的 .NET 核心/标准平台扩展程序集,我该如何解决? - Why is my .NET framework app looking for the wrong version of the .NET core/standard platform extension assembly, and how do I fix it? 我怎么知道点击了哪张卡? - How do I know which card is clicked? 如何确定给定 .NET 程序集使用的子系统? - How can I determine the subsystem used by a given .NET assembly? 我要哪个程序集? - Which assembly do I want? 给定 2 个点和 2 个方向,我怎么知道它们是否相交? - given 2 point and 2 direction how do I know if they intersect? 给定GridView上的ItemClick事件,我如何知道被单击的组? - Given the ItemClick event on a GridView, how do I know the group that was clicked? 我如何知道分配给线程的实际时间片? - How do I get to know the actual time slice given to a thread?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM