Search code examples
visual-studionugetepiserver

Uploading NuGet add-on package to Episerver throws exception


I am researching on EPiserver. I set up the environment localhost, I create an addOn and now I am trying to uploaded as I have already created a .nupkg file. But I receive this exception:

"The schema version of 'TestAddOn' is incompatible with version 2.0.30619.9119 of NuGet. Please upgrade NuGet to the latest version from http://go.microsoft.com/fwlink/?LinkId=213942. " I run

 nuget.exe update -Self 

on my pc but I have already the latest version.

Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 4.6.2.
NuGet.exe is up to date.

What can it be the mismatch here? Thank you in advance.

UPDATE

Here is the nuspec file:

<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</licenseUrl>
<projectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</projectUrl>
<iconUrl>http://ICON_URL_HERE_OR_DELETE_THIS_LINE</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2018</copyright>
<tags>Tag1 Tag2</tags>


Solution

  • It's maybe strange a lot but it needed to update NuGet.Core package to a newer version. For instance from 2.0.3 to 2.7.2.