简体   繁体   English

.NET / Visual Studio:如何查找给定包的NuGet包源

[英].NET/Visual Studio: How to find NuGet Package Source for a given Package

I have inherited a project recently and a select few of the packages originated from a package source that I do not know the source url to connect to. 我最近继承了一个项目,并且其中一些软件包是从不知道要连接的源URL的软件包源中产生的。 Is there a way to, by looking at the solution, tell the URL/source that these packages came from? 通过查看解决方案,是否有办法告诉这些包来自URL /源? Unfortunately, the previous owner of the solution is not being very responsive or helpful. 不幸的是,该解决方案的先前所有者并没有很好地响应或提供帮助。

I've tried looking in packages.config which only seems to list the package id and version for each package along with browsing through .csproj and .sln files 我试过在packages.config中查找,它似乎只列出每个软件包的软件包ID和版本,以及浏览.csproj.sln文件

In case this helps anyone in the future, I've found where the reference to the package source is stored in the ProjectName/.nuget/nuget.config file. 如果将来对任何人有帮助,我会在ProjectName/.nuget/nuget.config文件中找到对包源的引用。 Note, this will only be helpful if you are given a copy of a project and this file is not scrubbed beforehand. 请注意,这仅在为您提供了项目的副本且未事先清除此文件的情况下才有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM