摘要和描述的最大长度是多少?

What is max length of summary and description?

这个 Nuspec 参考解释了描述和摘要文本字段:https://docs.nuget.org/create/nuspec-reference

关于摘要,它说是

A short description of the package. If specified, this shows up in the middle pane of the Add Package Dialog. If not specified, a truncated version of the description is used instead.

有谁知道摘要、描述的最大长度,如果不提供摘要,描述中将使用多少个字符?

没有摘要或描述的最大长度。如果未使用摘要,则使用所有描述。

然而,显示的内容取决于“管理包”对话框的大小、文本中使用的字符大小、是否选择了该行以及是否显示“安装”按钮,以及您是否正在使用 Visual Studio 2015 或更早的版本。所以没有定义最大长度的字符数。

这似乎是特定于客户端实现的。例如,我刚在 nuget.org 的 Web API 上传一些描述很长的包时收到错误。

nuget.org 的标签和描述不能超过 4000 个字符。

摘要也因客户端而异。例如,Visual Studio 中的包管理器控制台使用控制台 window 的宽度来确定摘要的长度,而 Visual Studio 2017 包管理器约为 197 个字符。 Nuget.org 目前使用 297 个字符。