如何还原已删除的任务

Pot*_*dki 5 tfs tfs2018

我不小心使用tfx build task -delete命令删除了tfs任务NugetToolInstaller。现在我要还原它。我该怎么做?我尝试在这里遵循以下答案-> https://github.com/microsoft/azure-pipelines-tasks/issues/3768 但随后在运行noe。\ make.js build命令时出现以下错误:

> getting module externals
Downloading file: https://vstsagenttools.blob.core.windows.net/tools/NuGet/3.3.0/nuget.zip
C:\repos\vsts-tasks\node_modules\sync-request\index.js:37
    throw new Error(response.error.message || response.error || response);
Run Code Online (Sandbox Code Playgroud)

Pot*_*dki 0

我能够解决这个错误。我编辑了 .npmrc 文件以指向我们的内部存储库 (Artifactory),我还更改了此任务的 make.json 文件以指向我们的 Artifactory 存储库。