如何判断应用程序是在 32 位还是 64 位模式下运行?

发布于 2024-09-10 18:08:43 字数 135 浏览 2 评论 0原文

我有一个 C# 项目,目标平台设置为“任何 CPU”。 据我了解,该应用程序将定期从 MSIL 编译为 32 位 Windows (x86) 和 64 位适用于 64 位 Windows。是否可以显示 在运行时它以什么模式运行?

提前致谢。

I have a C# project with target platform set to "Any CPU".
As I understand, the app will be compiled from MSIL to 32-bit on regular
Windows (x86) and 64-bit for 64-bit Windows. Is it possible to show
at runtime what mode it is running in ?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文