Nuget package registry metadata issues

Goodmorning everyone,
i have a docker instance of gitlab ce on the local network.
However I push a nuget package in the gitlab registry, various metadata are missing.
The description, the author and the releaseNotes are certainly missing.

I report below:

  • the .nuspec file contained in the package
  • the result of the related query to the gitlab repository
  • the screenshot of the visual studio nuget package management pane

Thanks in advance to those who can help me!

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
  <metadata>
    <id>WPFUpdateMonitor</id>
    <version>1.4.70</version>
    <title>WPFUpdateMonitor</title>
    <authors>XXXX XXXX XXXX</authors>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <projectUrl>https://gitlab.xxxxxxx.xxxxx/xxxxxxx/library/wpfupdatemonitor</projectUrl>
    <description>Controllo WPF che gestisce automaticamente le esigenze di aggiornamento tramite ClickOnce</description>
    <releaseNotes>Disabled global exception handling</releaseNotes>
    <copyright>Copyright ©  2021</copyright>
    <dependencies />
  </metadata>
</package>

{
    "@id": "https://gitlab.xxxxxxx.xxxxx/api/v4/projects/57/packages/nuget/metadata/WPFUpdateMonitor/1.4.84.json",
    "packageContent": "https://gitlab.xxxxxxx.xxxxx/api/v4/projects/57/packages/nuget/download/WPFUpdateMonitor/1.4.84/wpfupdatemonitor.1.4.84.nupkg",
    "catalogEntry": {
        "@id": "https://gitlab.xxxxxxx.xxxxx/api/v4/projects/57/packages/nuget/metadata/WPFUpdateMonitor/1.4.84.json",
        "authors": "",
        "dependencyGroups": [],
        "id": "WPFUpdateMonitor",
        "version": "1.4.84",
        "tags": "",
        "packageContent": "https://gitlab.xxxxxxx.xxxxx/api/v4/projects/57/packages/nuget/download/WPFUpdateMonitor/1.4.84/wpfupdatemonitor.1.4.84.nupkg",
        "summary": "",
        "projectUrl": "https://gitlab.xxxxxxx.xxxxx/xxxxxxx/library/wpfupdatemonitor"
    }
}
1 Like

Did you ever figure anything out on this? I’m seeing the exact same problem, and I can’t figure out what’s going on?

I don’t have a nuspec file.

Extensions:
  extends: .nuget-publish-setup
  script:
    - dotnet pack -p:PackageVersion=$IMAGE_TAG MyProject.csproj -c Release
    - dotnet nuget push "MyProject/bin/Release/*.nupkg" --source gitlab

csproj PropertyGroup tags

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <PackageId>MyPackageName</PackageId>
    <PackageIcon>package-icon.png</PackageIcon>
    <Authors>MyAuthors</Authors>
    <Company>MyCompany</Company>
    <Description>My Description</Description>
    <ProjectUrl>myprojecturl</ProjectUrl>
    <Readme>readme.md</Readme>
  </PropertyGroup>

I couldn’t fix it, so I moved the nuget repository to nexus (always docker) and now it’s all perfectly fine!

I happened across this support issue today: https://gitlab.com/gitlab-org/gitlab/-/issues/273532. It’s 5 months old and doesn’t have a lot of attention, so I doubt gitlab is going to put effort into improving their nuget feed json response.