当我需要访问machine.config时,有没有一种方法可以告诉我一直在使用什么框架?
C:\Windows\Microsoft.NET\目录下的Framework或Framework64都有该文件。
发布于 2011-03-25 18:47:49
看看这篇文章:如果您使用的是.NET 4,那么它的.NET类中有两个属性: Is64BitOperatingSystem和Is64BitProcess。试一试。
看看这篇文章,它真的很有用:How to detect programmatically whether you are running on 64-bit Windows
发布于 2011-03-25 18:46:16
从代码内部?在C# 4.0 Environment.Is64BitProcess
中,In < 4.0 IntPtr.Size
。并阅读How to detect Windows 64-bit platform with .NET?
https://stackoverflow.com/questions/5431356
复制相似问题