Getting the exact runtime version from DLLs #64321
-
I noticed that since .NET 5, most assemblies in the runtime have their assembly versions set as the major version of the runtime, but the patch version information is lost. For example, from runtime version 5.0.0 through 5.0.13, the assembly version for This makes it difficult to diagnose potential issues that behave differently across different patch versions of the runtime, because very often I need to backtrack the runtime version from the DLLs. The only reliable way I found so far is to record the assembly MVID of the DLL, and then comparing it against the MVIDs of that assembly in each published patch version of the runtime, which as you may imagine is very time-consuming. Specifically, I'm wondering:
Thanks a lot for any help you can provide! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can get the full version of a given runtime DLL by looking at the On Windows you can view it by right-clicking the file in Explorer, opening |
Beta Was this translation helpful? Give feedback.
You can get the full version of a given runtime DLL by looking at the
AssemblyInformationalVersionAttribute
.On Windows you can view it by right-clicking the file in Explorer, opening
Properties
, and then go to theDetails
tab: