title: .NET Framework get running processor architecture
body: <p>There is an enum of all supported processor architectures here: <a href="http://msdn.microsoft.com/en-us/library/system.reflection.processorarchitecture.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.reflection.processorarchitecture.aspx</a></p>
  
  <p>Is there any way to determine which one corresponds to the running environment? System.Reflection.Assembly.GetExecutingAssembly().ProcessorArchitecture returns MSIL -- obviously wrong.</p>
  
  <p>EDIT: Bojan Resnik posted an answer and deleted it. I see that some clarification is needed from the partial trace I got.</p>
  
  <p>The assembly needs to run on multiple architectures and do different things based on what assembly instructions the running process accepts. Essentially, I need to select which version of a native DLL to load. I have one for each architecture.</p>