Closed sdwheeler closed 1 year ago
NOTE: NuGet.Server has existed since 2016 and we have supported for as long as I have been doing the PowerShell docs. There have been over 495,000 downloads of the NuGet.Server package. I think that it is important to support NuGet.Server.
@sdwheeler thanks for opening this issue, we are doing some testing, and want to see if https://localhost:44370/api/v2 works as a uri for you? This doesn't give v3 support but may be a quick work around for v2 support
@sdwheeler thanks for opening this issue, we are doing some testing, and want to see if https://localhost:44370/api/v2 works as a uri for you? This doesn't give v3 support but may be a quick work around for v2 support
Nope, I get the same error. When I try to browse to that url I get a 404 error. When I browse to the documented endpoint https://localhost:44370/nuget
I get the following XML response.
<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xml:base="https://localhost:44370/nuget">
<workspace>
<atom:title type="text">Default</atom:title>
<collection href="Packages">
<atom:title type="text">Packages</atom:title>
</collection>
</workspace>
</service>
Prerequisites
Steps to reproduce
I follow the instructions for setting up a local instance of NuGet.Server we have in Working with Private PowerShellGet Repositories.
I used Visual Studio 2022. I had to add the .NET Framework development tools. You need this so that you can create a new "ASP.NET Web Application (.NET Framework)" project.
For testing, you have to create a self-signed certificate and add it to your trusts. I had trouble getting Edge to display the page for the URL but got it to work in Chrome.
Once the NuGet.Server instance was running:
Tried to find the package using
Find-PSResource
and received the following error:Next I tested with PowerShellGet v2.2.5. V2.2.5 was able to find the package.
Expected behavior
Actual behavior
Testing with PSResourceGet
Testing with PowerShellGet v2.2.5
Error details
Environment data
Visuals
No response