【问题标题】:VSTS Build and NuGet Publisher - 405 Method Not AllowedVSTS Build 和 NuGet Publisher - 405 方法不允许
【发布时间】:2017-06-08 09:15:19
【问题描述】:

我正在尝试配置将 NuGet 包发布到内部提要的 VSTS 构建。 Puckage 已成功创建,但 NuGet Publisher 存在问题。 当 NuGet 发布者尝试发布包时出现错误:

Using credentials from config. UserName: VssSessionToken
Pushing PackageName_20170608-081053 to 'https://...visualstudio.com/_packaging/b5ae5df2-b73e-4af2-...-66df-4340-8e68-9d4be0071ba8/nuget/v2/'...
PUT https://...visualstudio.com/_packaging/b5ae5df2-b73e-4af2-...-66df-4340-8e68-9d4be0071ba8/nuget/v2/
System.InvalidOperationException: Failed to process request. 'Method Not Allowed'. 
The remote server returned an error: (405) Method Not Allowed.. ---> System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.
...
Error: d:\a\_tasks\NuGetPublisher_333b11bd-d341-\0.2.34\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe failed with return code: 1
Packages failed to publish

我已经检查了提要的权限,并且项目集合构建服务已添加为贡献者。我也尝试过使用 NuGet 版本,但没有帮助。

【问题讨论】:

  • 你要打包的项目类型是什么?尝试将system.debug设置为true并排队构建,然后检查是否有细节错误。如果您尝试使用新的提要,结果如何?另一方面,尝试将 NuGet 版本升级到 3.5 或 4.0,然后排队构建。 (选择 NuGet Publisher 任务 > 高级 > 选择不同的 NuGet 版本。

标签: nuget nuget-package azure-pipelines azure-artifacts


【解决方案1】:

问题是我试图发布以发布视图。相反,我必须先将包推送到提要。

以下是详细信息: https://github.com/Microsoft/vsts-tasks/issues/4493

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-20
    • 2023-03-23
    • 2011-06-21
    • 2011-04-05
    相关资源
    最近更新 更多