当“dotnet nuget push”失败时,从 Github Packages 后端获取诊断信息?

问题描述

我正在尝试移植一个遗留项目,以将 nuget 工件推送到 Github 包作为概念验证,并在工作中学习。

当前推送失败,没有解释:

<!DOCTYPE html>
<html>
<head>
<style>
img {
    background-color: blue;
    border-radius: 50%;
    width: 100%;
}
#image-container {
    width: 128px;
    height: 128px;
    background: lightseagreen;
}
</style>
</head>

<body>
<div id="image-container">
  <img src="img_avatar.png"/>
 </div>
</body>

</html>

(手动更改项目和用户名)。我知道 dotnet 在本地发出的关于 RepositoryUrl 的警告很可能是正确的,即使它应该在那里,但我希望后端有一个解释性的拒绝原因,我希望看到。

在我没有经验的 Github Packaging 指南浏览中,我没有注意到这样的调试日志,而且 C:\Users\m86194\source\repos\my-project>dotnet nuget push "**/*.nupkg" --source github --skip-duplicate --api-key *** Pushing my-project.1.0.0.nupkg to 'https://nuget.pkg.github.com/me'... PUT https://nuget.pkg.github.com/me/ warn : No destination repository detected. Ensure the source project has a 'RepositoryUrl' property defined. If you're using a nuspec file,ensure that it has a repository element with the required 'type' and 'url' attributes. BadRequest https://nuget.pkg.github.com/me/ 4721ms error: Response status code does not indicate success: 400 (Bad Request). 的帮助页面没有指示 -v 标志。

如何从这里的服务器获取调试信息?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)