Configure .NET
Add Depsilo's NuGet v3 index as a package source for dotnet restore.
BEFORE
https://api.nuget.org/v3/index.jsonAFTER
http://localhost:23333/nuget/v3/index.jsonNuGet uses a v3 service index; Depsilo’s route is /nuget/v3/index.json, not /nuget/.
Configure the client
Section titled “Configure the client”dotnet nuget add source http://localhost:23333/nuget/v3/index.json -n depsilodotnet nuget list sourceThis updates the user-level NuGet.Config. A team project can keep an equivalent NuGet.Config next to the solution and use <clear /> to drop the default nuget.org source:
<configuration> <packageSources> <clear /> <add key="depsilo" value="http://localhost:23333/nuget/v3/index.json" /> </packageSources></configuration>Verify requests
Section titled “Verify requests”-
Check that the instance is ready
终端窗口 curl -fsS http://localhost:23333/ready -
Restore a project
终端窗口 dotnet restore -
Confirm the traffic in Admin
Check the
/nuget/requests and cache results in Access logs.