如何获得当前EF版本
问题描述:
由于新的实体框架的版本从我得到的NuGet打破了我的一些测试,在我的项目之一,我要确保安装为整个解决方案的参考实体框架的版本是版本4.1.10331.0
Since new Entity Framework version I got from nuget broke some of my tests, in one of my projects I want to make sure the Entity Framework version installed as reference for the entire solution is the version 4.1.10331.0
什么是找出我引用实体框架4.1.10331.0因为每次的NuGet安装的解决方案的最佳方式是什么?阅读packages.config?通过所有的组件将在当前域?
What's the best way to find out I'm referencing entity framework 4.1.10331.0 since nuget installs it per solution? Reading packages.config? Going through all the assemblies in current domain?
答
我最终得到的程序集的版本,因为我没有找到另一种方式。
I ended up getting the assembly version since I didn't find another way.