希望大家帮帮我. 解决方案 使用 dotnet restore -v:n 使 dotnet restore 以verbosity"级别显示信息普通的".这将向您显示很多信息.最后,您将获得如下信息: 使用的 NuGet 配置文件:/home/omajid/.nuget/NuGet/NuGet.Config使用的饲料:https://api.nuget.org/v3/index.json这会显示使用了哪些 nuget 配置文件和 nuget 提要.(不幸的是,似乎没有选项可以说只给我看,但不要进行还原".)I'm doing a simple dotnet restoreon my mac. I'm using the (for now) latest dotnet CLI version 2.2.Since you can have both a NuGet.Config file in your project folder and a machine-wide config, say:~/projects/helloworld/.NuGet/NuGet.Config~/.nuget/NuGet/NuGet.ConfigIs there any way to ask dotnet restore like "hey, if if were to run you, what combination of NuGet sources would you actually use?"As you might have guessed my problem is that i'm not really sure that all my defined sources are used.(actually my problem is that running dotnet restore --interactivedoes not prompt me, which I would expect, so I assume NuGet is not even trying to fetch packages from my defined source)Hope you guys can help me out. 解决方案 Use dotnet restore -v:n to make dotnet restore display information with "verbosity" level of "normal". This will show you a lot of information. Towards the end, you will get information like this: NuGet Config files used: /home/omajid/.nuget/NuGet/NuGet.Config Feeds used: https://api.nuget.org/v3/index.jsonThat shows which nuget config files and nuget feeds were used.(Unfortunately, there doesn't seem to be a option to say "just show me, but don't do a restore".) 这篇关于哪些 NuGet 源用于还原?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-03 02:03