2

我有本地 nuget 存储库 nuget.companyrepo.com。我将 SuperLibrary 发布到该存储库。这个库在 paket.template 中有这样的依赖:

dependencies
    Newtonsoft.Json 4.5.1
files
    build/SuperLibrary.dll => lib

在我的第二个项目中,我正在创建 paket.dependencies 文件:

content: none
framework: = net40
source https://nuget.org/api/v2
source https://nuget.companyrepo.com

nuget log4net
nuget SuperLibrary

当我更新 paket 时,我收到一条消息:

无法 getDetailsFromNuGetViaOdataFast ' https://nuget.companyrepo.com/api/nuget/Packages ?$filter=tolower((Id) eq 'newtonsoft.json')"... 远程服务器返回错误:(405) 方法不允许。

因此 paket 仅在其存储库中寻找与 SuperLibrary 相关的依赖项。我希望 Paket 从 nuget.org 中提取此依赖项。我不想复制我的依赖项的所有依赖项!

我该如何解决!?

4

0 回答 0