NuGet Schema version of Microsoft.AspNet.Mvc incompatable with version 2.5.40416.9020 of NuGet

john.proctor's Avatar

john.proctor

13 Nov, 2014 08:46 AM

Hi All,

Had a build working yesterday but I'm attempting a build this morning and I'm getting an error that the schema version of Microsoft.AspNet.Mvc is incompatable with the version of NuGet. Every project in the solution that references MVC 3 is breaking with the error (example below)

MVC is version 3 and being pulled in by NuGet. I'm a bit lost as to why this was working yesterday and is now broken - the MVC 3 package hasn't changed from what we were building with yesterday.

Am I missing something or is this an Appveyor issue?

Thanks,
John

"C:\projects\myDir\MySln.sln" (default target) (1) ->
635"C:\projects\myDir\MyProj.csproj" (default target) (9) ->
636 C:\projects\myDir\.nuget\nuget.targets(89,9): error : The schema version of 'Microsoft.AspNet.Mvc' is incompatible with version 2.5.40416.9020 of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942. [C:\projects\myDir\APITests\APITests.csproj]
637 C:\projects\myDir\.nuget\nuget.targets(89,9): error MSB3073: The command ""C:\projects\myDir\.nuget\NuGet.exe" install "C:\projects\myDir\APITests\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "C:\projects\myDir\ " " exited with code 1. [C:\projects\myDir\APITests\APITests.csproj]

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Nov, 2014 08:07 PM

    Feodor Fitsner's Avatar

    It seems you should update nuget.exe in your .nuget folder. Can be downloaded from here: http://nuget.org/nuget.exe

    In general, having .nuget folder is not very nice approach as it's getting outdated all the time. I'd recommend dump .nuget folder at all (and remove all references to nuget.targets from your projects) and switch to nuget restore command before build.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:50 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM