需要帮忙。恢复 NuGet 包时出错

Need help. Getting error while restoring NuGet Packages

我有一个 Azure DevOps 管道,它正在尝试将 NuGet 包还原到我的项目之一。它因以下错误而失败。我无法解决它并继续前进。

##[error]The nuget command failed with exit code(1) and error(System.AggregateException: One or more errors occurred. ---> 
NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://cesis.pkgs.visualstudio.com/_packaging/Internal/nuget/v3/index.json. ---> 
System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).

我想通了。 我必须创建新的 PAT 令牌并将令牌应用到管道,然后一切开始工作。