可以在Visual Studio 2010中使用Entity Framework 6吗?

可以在Visual Studio 2010中使用Entity Framework 6吗?

问题描述:

我们的开发团队(和构建服务器)成功地将Visual Studio 2010和Visual Studio 2012的混合使用于我们的应用程序。

Our development team (and build servers) successfully use a mixture of Visual Studio 2010 and Visual Studio 2012 for our application.

然而,从EF5升级到EF6 ,我们似乎无法使用VS2010构建。
具体来说,构建机器根本不会生成。我的桌面上的VS2010似乎构建了,但是我收到以下错误:

However, since upgrading from EF5 to EF6, we no longer seem to be able to build with VS2010. Specifically, the build machines won't build at all. VS2010 on my desktop does seem to build, but I get the following errors:

Error   4   Error 10023: Could not find the conceptual model to validate. 
Error   5   Error 10024: Could not find the storage model to validate.
Error   6   Error 10025: Could not find the mapping model to validate.

编辑:

我们的构建机器没有.Net 4.5,我们的台式机(由于IT策略)确实有.Net 4.5。在没有4.5的机器上,我们还得到以下内容,这样可以避免程序集生成。

Our build machines do not have .Net 4.5, our Desktop machines (due to IT policy) do have .Net 4.5. On the machines without 4.5, we also get the following, which prevent assembly generation.

Could not find the Conceptual Schema node to embed as a resource for input file


可以使用EF6运行时使用.NET Framework 4 / Visual Studio 2010,但EF6工具不支持VS2010。 EF工具更新为与VS2012和VS2013的EF6配合使用。换句话说,在VS2010和EF6上,您可以执行CodeFirst而不是ModelFirst / DatabaseFirst。

You can use EF6 runtime with .NET Framework 4/Visual Studio 2010 however EF6 tooling does not support VS2010. EF tooling was updated to work with EF6 for VS2012 and VS2013. In other words on VS2010 and EF6 you can do CodeFirst but not ModelFirst/DatabaseFirst.