【发布时间】:2018-05-03 12:49:01
【问题描述】:
我在 windows 中开发了一个 web api (.net core) 并将其托管在 ubuntu 服务器中。我的应用程序需要来自私有 nuget 存储库的包。
我已将包源设置为nuget config -Set RepoName=http://sample-nuget-repo.net/api/odata。
我已经用 nuget 资源进行了验证。
当我运行 dotnet restore 时,它给了我失败消息。
如果我遗漏了什么,请帮助我。
nuget.config 文件在 ubuntu 中的位置是什么(在 windows 中是 appdata/nuget/nuget.config)
【问题讨论】:
-
dotnet restore app.sln --source sample-nuget-repo.net/api/odata 解决了我的问题
-
我们可以全局配置吗?
标签: .net-core nuget ubuntu-16.04