NuGet private feed not updating DownloadCount

大兔子大兔子 提交于 2019-12-07 02:05:53

问题


I have set up a small test Nuget private repository on my machine following this guide.

Everything is working perfectly and I can publish packages, update versions, download them etc. The only problem is that the DownloadCount of my packages is always 0 regardless of how many times I download it.

I downloaded NuGet source but could not find a place where this value is updated. Moreover, nuget does not seem to use any DB technology so probably the feed is just generated on demand from the contents of the Packages folder.

Does anyone have any idea if this is a known issue or if it's a problem in my setup or if I should just add some code to the server to record downloads myself?

Thanks!


回答1:


NuGet.Server based web sites are simply a front-end exposing an OData feed on top of a file share. There's no real database behind it, no indexing, no auditing, tracing, metrics or statistics, or any of that kind of stuff.

You could build it yourself, or take a look at alternatives such as MyGet, ProGet, Artifactory, etc.



来源:https://stackoverflow.com/questions/17448071/nuget-private-feed-not-updating-downloadcount

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!