Is there a way to get the version of EF at runtime? Something like
Console.WriteLine(Environment.Version);
will return
4.0.30319.18034
Extension of Alexey’s idea, you can do
string version = typeof(DbSet).Assembly.GetName().Version.ToString();
Print the "version" of the assembly for any type of structure you are interested in:
Console.Write( typeof(String).Assembly.GetName().Version);