Hi @nicolas-morissette_6285,
This is most certainly interesting to me. This does not seem to be an issue with ProGet from what I can see. I created a simple example based on Newtonsoft.json. I created nuspec file that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>Newtonsoft.Json</id>
<version>13.0.0</version>
<title>Json.NET</title>
<authors>James Newton-King</authors>
<owners>James Newton-King</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">MIT</license>
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
<icon>packageIcon.png</icon>
<projectUrl>https://www.newtonsoft.com/json</projectUrl>
<description>Json.NET is a popular high-performance JSON framework for .NET</description>
<copyright>Copyright © James Newton-King 2008</copyright>
<tags>json</tags>
<repository type="git" url="https://github.com/JamesNK/Newtonsoft.Json" commit="7c3d7f8da7e35dde8fa74188b0decff70f8f10e3" />
<dependencies>
<group targetFramework=".NETStandard2.0" />
</dependencies>
</metadata>
</package>
I navigated to the URL you specified aboved and got this:
{
"count": 1,
"items": [
{
"count": 1,
"items": [
{
"@id": "http://proget.localhost/nuget/NoConnPublic/v3/registrations-gz/newtonsoft.json/13.0.0.json",
"@type": "Package",
"catalogEntry": {
"@id": "http://proget.localhost/nuget/NoConnPublic/v3/catalog/newtonsoft.json/13.0.0.json",
"@type": "PackageDetails",
"authors": "James Newton-King",
"dependencyGroups": [
{
"targetFramework": ".NETStandard2.0",
"dependencies": []
}
],
"description": "Json.NET is a popular high-performance JSON framework for .NET",
"id": "Newtonsoft.Json",
"licenseUrl": "https://licenses.nuget.org/MIT",
"licenseExpression": "MIT",
"minClientVersion": "2.12",
"projectUrl": "https://www.newtonsoft.com/json",
"published": "2020-11-06T20:09:19.47Z",
"tags": "json",
"title": "Json.NET",
"version": "13.0.0"
},
"packageContent": "http://proget.localhost/nuget/NoConnPublic/v3/flatcontainer/Newtonsoft.Json/13.0.0/Newtonsoft.Json.13.0.0.nupkg",
"registration": "http://proget.localhost/nuget/NoConnPublic/v3/registrations-gz/newtonsoft.json/index.json"
}
],
"parent": "http://proget.localhost/nuget/NoConnPublic/v3/registrations-gz/newtonsoft.json/index.json",
"lower": "13.0.0",
"upper": "13.0.0"
}
]
}
My guess is this is most likely an issue with the AzureDevOps registry returning the dependencyGroups
incorrectly through the connector. The fact that id
and range
are specified but do not have a value is definitely what is breaking ProGet because if it is specified we expect it to exist. Are you able to get that registration JSON directly from Azure DevOps' registry and see if you see that empty id
and range
in there?
Thanks,
Rich