Reputation: 286
I have a reference to a type, for which I would like to retrieve the version number of the Assembly in which it is located.
What is the best way to do this?
Upvotes: 8
Views: 516
Reputation: 5016
you can use,
x.GetType().Assembly.GetName().Version
Upvotes: 12