0

尝试在 Azure DevOps 上运行管道构建时,我收到以下错误:

##[error]The nuget command failed with exit code(1) and error(NU1101: Unable to find package ComponentSpace.Saml2.Licensed. No packages exist with this id in source(s): NuGetOrg

有人可以指出如何包含许可证的文章吗?或者可以告诉我如何修复它以通过构建?

谢谢

4

1 回答 1

0

NuGet 错误 NU1101 表示在任何来源都找不到该包。

解决方案

在 Visual Studio 中检查项目的依赖项,确保使用正确的包标识符和版本号。还要检查 NuGet 配置是否标识了您预期使用的包源。如果您使用具有语义版本控制 2.0.0 的包,请确保您 https://api.nuget.org/v3/index.json在 NuGet 配置中使用 V3 提要。

https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1101

于 2020-06-29T06:51:21.733 回答