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

entity-framework-6 nuget-package visual-studio-2015

Question

(Let me preface the question with Yes, I have seen similar questions, but not exactly my scenario.)

My environment is

Microsoft Visual Studio Professional 2015 (version 14.0.25431.01 Update 3)

My actions

  1. I create a new C# Class Library Project; (Ok)
  2. It defaults to .NET Fx 4.5.1, I change it to the latest on my machine Fx 4.7.2; (Ok)
  3. I Build / Compile it; (Ok)
  4. I go to the Manage NuGet Packages menu, search for EntityFramework, and try to install the latest; it tells me it is EF 6.3.(Ok)
  5. Hit the install button (ERROR - see message below)
  6. WTF (?) I've used this VS 2015 for 5 years (yes it is 2019 now) without fail, why fail now?

Output 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

What I think is happening:

Whoever prepared the NuGet EF 6.3 package has not tested it with VS2015 ? Any ideas on a solution, please.

1
0
10/11/2019 8:14:40 AM

Accepted Answer

This is a bug in EF6.3 which is already fixed and included in 6.4.

0
12/5/2019 3:47:24 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow