Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Not possible to access package with metadata in version
-
Hi,
we are using a nuget package which has metadata information in the version. It is NaturalSort.Extension 3.1.0+build.51. When installing nuget packages via nuget.exe an error appears which seems to find the package in proget but is not able to access it probably because of the metadata part in the file name.GET https://proget.eschbach.com/nuget/nuget-internal/Packages(Id='NaturalSort.Extension',Version='3.1.0')
build 16-Jun-2021 10:34:24 OK https://proget.eschbach.com/nuget/nuget-internal/Packages(Id='NaturalSort.Extension',Version='3.1.0') 7ms
build 16-Jun-2021 10:34:24 GET https://proget.eschbach.com/nuget/nuget-internal/package/NaturalSort.Extension/3.1.0+build.51
build 16-Jun-2021 10:34:24 NotFound https://proget.eschbach.com/nuget/nuget-internal/package/NaturalSort.Extension/3.1.0+build.51 1ms
build 16-Jun-2021 10:34:24 WARNING: Unable to find version '3.1.0' of package 'NaturalSort.Extension'.Additionally since the update to version 5.3.31 the service status page does not show any health checks anymore. How can I reactivate them?
-
Hi,
Try using the NuGet v3 API for your feed instead- just use https://proget.eschbach.com/nuget/nuget-internal/v3/index.json as the package source URL in NuGet. NuGet's handling of semantic versions in the old API can be inconsistent, so this may resolve the issue.
-
@gdivis
Hi, thank's for the fast reply! I changed the URL as following:
nuget.exe restore Shiftconnector.sln -Source https://proget.eschbach.com/nuget/nuget-internal/v3/index.jsonI think I'm still missing something, it tries to do a OData query from what I see:
17-Jun-2021 08:12:48WARNING: Unable to find version '3.1.0' of package 'NaturalSort.Extension'.
build 17-Jun-2021 08:12:48 C:\Windows\system32\config\systemprofile.nuget\packages: Package 'NaturalSort.Extension.3.1.0' is not found on source 'C:\Windows\system32\config\systemprofile.nuget\packages'.
build 17-Jun-2021 08:12:48 https://proget.eschbach.com/nuget/nuget-internal/v3/index.json: Unable to load the service index for source https://proget.eschbach.com/nuget/nuget-internal/v3/index.json.
build 17-Jun-2021 08:12:48 Response status code does not indicate success: 404 (OData method is not implemented.).In proget I have the nuget connector configured with URL: https://api.nuget.org/v3/index.json
-
This post is deleted!
-
@gdivis
I found the missing setting. It was in Manage Feed > Supported API. I selected "JSON-LD (v3)" and now all is fine.As this setting was not automatically activated in Proget it would help in my opinion to add it in you docs https://docs.inedo.com/docs/proget-feeds-nuget-problems-with-my-nuget-org-connectors Currently it says If you have already upgrade to ProGet 5.3+, you are not affected by this.
Thank you,
Jana
-
I'm glad you got it working! I had forgotten that flag was even added :/
I'll chat with the docs team to get things clarified in there, or maybe see if we can change the default to enable v3 by default from now on.
Thanks!
-Greg