如何获得当前EF版本 [英] How to get current EF version
本文介绍了如何获得当前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.
这篇关于如何获得当前EF版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文