Перейти к содержанию

Настройка NuGet

nuget:
  enabled: true
  repository:
    - name: nuget
      registry: https://api.nuget.org
      scan-manifest: true
      scan-package: true
      work-mode: strict_wait
      url-encoded-config: true

Добавьте источник пакетов:

dotnet nuget add source https://osa-proxy.example.com/nuget/nuget-api/v3/index.json --name osa-proxy
dotnet restore --source https://osa-proxy.example.com/nuget/nuget-api/v3/index.json

Эквивалентный NuGet.Config:

<configuration>
  <packageSources>
    <clear />
    <add key="osa-proxy" value="https://osa-proxy.example.com/nuget/nuget-api/v3/index.json" />
  </packageSources>
</configuration>
Страница была полезна?