升级 EF6 时,我得到项目的默认 XML 命名空间必须是 MSBuild XML 命名空间

When upgrading EF6, I get the default XML namespace of the project must be the MSBuild XML namespace

我正在将我的 EntityFramework 从版本 6.2.0 升级到 6.3.0,但在升级过程中出现错误:

The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.

我的 .Net Framework 是 4.5.2。有人可以帮忙吗?谢谢

请注意,我在 Whosebug 上看到了所有类似的问题,但它们似乎没有帮助。

遗憾的是,EF 6.3 使用新的 csproj 格式并且需要 VS 2017 及更高版本。 我降级到 EF 6.2,它构建良好。 所以对于你的情况,请尝试使用VS2017或更高版本来构建项目。

Entity Framework 6.3.0 还是不行,6.4.0 可以。