未验证 提交 f99d8510 编写于 作者: E Eugene Auduchinok 提交者: GitHub

Dependency manager/nuget: use enabled feeds only (#13312)

上级 a9d2cc08
......@@ -198,11 +198,10 @@ module internal Utilities =
seq {
if success then
for source in stdOut do
// String returned by dotnet nuget list source --format short
// is formatted similar to:
// String returned by `dotnet nuget list source --format short` is formatted similar to:
// E https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
// So strip off the flags
let pos = source.IndexOf(" ")
if pos >= 0 then yield ("i", source.Substring(pos).Trim())
// Use enabled feeds only (see NuGet.Commands.ListSourceRunner.Run) and strip off the flags.
if source.Length > 0 && source.[0] = 'E' then
let pos = source.IndexOf(" ")
if pos >= 0 then "i", source.Substring(pos).Trim()
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册