Visual Studio 2015 错误。项目的默认 XML 命名空间必须是 MSBuild XML 命名空间

Visual Studio 2015 Error. The default XML namespace of the project must be the MSBuild XML namespace

(让我用是的作为问题的开头,我看到过类似的问题,但不完全是我的情况。)

我的环境是

Microsoft Visual Studio Professional 2015 (version 14.0.25431.01 Update 3)

我的操作

  1. 我创建了一个新的 C# Class 库项目; (好的)
  2. 默认是.NET Fx 4.5.1,我在自己的机器上改成最新的Fx 4.7.2; (好的)
  3. 我构建/编译它; (好的)
  4. 我转到 Manage NuGet Packages 菜单, 搜索 EntityFramework,并尝试安装最新的;它说 我是 EF 6.3。(好的)
  5. 点击安装按钮(错误 - 请参阅下面的消息)
  6. WTF (?) 我已经使用这个 VS 2015 5 年了(是的,现在是 2019 年了)没有失败,为什么现在失败了?

输出window

Attempting to gather dependency information for package 'EntityFramework.6.3.0' with respect to project 'SqliteLayer', targeting '.NETFramework,Version=v4.7.2'
Attempting to resolve dependencies for package 'EntityFramework.6.3.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'EntityFramework.6.3.0'
Resolved actions to install package 'EntityFramework.6.3.0'
Adding package 'EntityFramework.6.3.0' to folder 'C:\PROJS\test-proj-01\packages'
Added package 'EntityFramework.6.3.0' to folder 'C:\PROJS\test-proj-01\packages'
Install failed. Rolling back...
Package 'EntityFramework.6.3.0' does not exist in project 'MyProjName'
Removing package 'EntityFramework.6.3.0' from folder 'C:\PROJS\test-proj-01\packages'
Removed package 'EntityFramework.6.3.0' from folder 'C:\PROJS\test-proj-01\packages'
Microsoft.Build.Exceptions.InvalidProjectFileException: 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 <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.  C:\PROJS\test-proj-01\packages\EntityFramework.6.3.0\build\EntityFramework.props
   at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) ... etc etc.. etc... the rest I chopped off

我认为发生了什么:

谁准备了NuGet EF 6.3包没有用VS2015测试过?请有任何解决方案的想法。

这是一个bug in EF6.3 which is already fixed and included in 6.4

这是我的解决方案,我创建了新项目并选择了 .netframework 2.0 或 3.0,然后我安装了 entityframework 及其作品