4

How do I find out what .net runtime a dll is built upon programmatically?

Thanks

c830
  • 514
  • 1
  • 7
  • 15
  • possible duplicate of [Determine framework (CLR) version of assembly](http://stackoverflow.com/questions/2310701/determine-framework-clr-version-of-assembly) – Richard Aug 05 '10 at 14:29

1 Answers1

4

The Assembly.GetAssembly method returns an Assembly that has an Assembly.ImageRuntimeVersion property. That property's description says, "Gets a string representing the version of the common language runtime (CLR) saved in the file containing the manifest."

I think that's what you're after.

Tim Goodman
  • 23,308
  • 7
  • 64
  • 83
shawndumas
  • 1,413
  • 15
  • 17