How do I register a new NuGet package source with dotnet CLI on Ubuntu 14.04?

前端 未结 2 1167
醉梦人生
醉梦人生 2021-01-17 07:30

I am running .NET Core 1.1.0 on Ubuntu 14.04, with the goal of hosting my Web APIs in Docker on Ubuntu. I want to build my packages on Ubuntu, but some of the NuGet referen

2条回答
  •  旧巷少年郎
    2021-01-17 08:06

    Dotnet CLI restore can take -s as source feed url, so if you have Artifactory with Remote repository to nuget.org.

    dotnet restore -s https://artifactory.example.com/api/nuget/nuget.org
    

    Reference :

    • https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-restore?tabs=netcore2x

    • https://www.jfrog.com/confluence/display/RTF/NuGet+Repositories

提交回复
热议问题