Add a package with a local package file in 'dotnet'

前端 未结 4 1447
小蘑菇
小蘑菇 2020-11-29 20:24

Using the dotnet command line tool, how can I add a reference to an existing local package that is not downloaded with NuGet?

I have tried addin

4条回答
  •  情歌与酒
    2020-11-29 20:53

    In .NET Core 3.1 (Arm64), I can add the local source and package by

    dotnet nuget add source ~/my/nuget-packages/
    mv mypackage.1.1.1.nuget ~/my/nuget-packages/
    dotnet add package mypackage
    

    and ~/.nuget/NuGet/NuGet.Config was changed.

提交回复
热议问题