Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

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

$
0
0

(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 tellsme 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.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>