Skip to content

Metadata Indexer for NuGet (.nuspec)

An example nuget.config file:

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
    <metadata>
        <id>sample</id>
        <version>1.2.3</version>
        <authors>Kim Abercrombie, Franck Halmaert</authors>
        <description>Sample exists only to show a sample .nuspec file.</description>
        <language>en-US</language>
        <projectUrl>http://xunit.codeplex.com/</projectUrl>
        <license type="expression">MIT</license>
        <dependencies>
            <dependency id="another-package" version="3.0.0" />
            <dependency id="yet-another-package" version="1.0.0" />
        </dependencies>
    </metadata>
    <files>
        <file src="bin\Debug\*.dll" target="lib" />
    </files>
</package>

In codemeta:

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "type": "SoftwareSourceCode",
  "author": [
    {
      "type": "Person",
      "name": "Kim Abercrombie"
    },
    {
      "type": "Person",
      "name": "Franck Halmaert"
    }
  ],
  "description": "Sample exists only to show a sample .nuspec file.",
  "license": "https://spdx.org/licenses/MIT",
  "url": "http://xunit.codeplex.com/",
  "version": "1.2.3"
}

Migrated from T4392 (view on Phabricator)

Edited by Phabricator Migration user