NuGet version >= 4.9 required for 'license' element.

matthamilton's Avatar

matthamilton

02 Feb, 2019 06:02 PM

As part of self-contained packages, The licenseUrl element has been deprecated in .nuspec files. This feature was released in v4.9. I am not sure exactly what version AppVeyor is using, but I am getting a build failure creating my metapackage which indicates it is earlier than 4.9:

    nuget : The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' has invalid child element 'license' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'. List of 
possible elements expected: 'developmentDependency, iconUrl, references, tags, licenseUrl, contentFiles, releaseNotes, packageTypes, description, language, serviceable, dependencies, projectUrl, requireLicenseAcceptance, 
summary, repository, frameworkAssemblies, copyright' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'.

Is there a way to use a newer version of nuget? I suppose I could download it during my build, but that tends to be a hassle.

  1. 1 Posted by matthamilton on 02 Feb, 2019 06:12 PM

    matthamilton's Avatar

    Whoops reversed the link syntax.

  2. Support Staff 2 Posted by Feodor Fitsner on 02 Feb, 2019 08:44 PM

    Feodor Fitsner's Avatar

    Will install NuGet 4.9.2 as part of the next image update: https://github.com/appveyor/ci/issues/2848

  3. 3 Posted by matthamilton on 02 Feb, 2019 09:40 PM

    matthamilton's Avatar

    Thanks!

  4. Owen McDonnell closed this discussion on 06 Feb, 2019 08:34 PM.

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

 

22 Aug, 2019 08:13 PM
21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 05:56 AM