简体   繁体   English

Nuget:package ID 被保留 - 当它不是

[英]Nuget: The package ID is reserved - when it is not

I tried publishing my first nuget package to nuget.org.我尝试将我的第一个 nuget package 发布到 nuget.org。 But I get the error "The package ID is reserved".但我收到错误“package ID 已保留”。 My package has the ID "Joa.API".我的 package 的 ID 为“Joa.API”。

During my research, I found 3 reasons why this error could occur:在我的研究过程中,我发现了可能发生此错误的 3 个原因:

  1. The package ID is already taken : I searched on nuget.org and can't find any packages with the same ID. package ID 已被占用:我在 nuget.org 上搜索,但找不到任何具有相同 ID 的包。 This does not seem to be the problem.这似乎不是问题所在。
  2. The package prefix is already taken : I searched on nuget.org for any packages with the same prefix. package 前缀已被使用:我在 nuget.org 上搜索了任何具有相同前缀的包。 I don't find any.我没有找到任何。 This does not seem to be the problem.这似乎不是问题所在。
  3. The package ID contains reserved words : The only reserved word I could find was "Resource": Nuget package id reserved word restrictions? The package ID contains reserved words : The only reserved word I could find was "Resource": Nuget package id保留字限制? . . My ID does not contain this word.我的ID不包含这个词。 This does not seem to be the problem.这似乎不是问题所在。

So my Question is, which of my assumptions is wrong?所以我的问题是,我的哪个假设是错误的?

I suggest you refer to these:我建议你参考这些:
Package ID prefix reservation Package ID前缀预留
NuGet Reserved Package ID Prefixes NuGet 保留 Package ID 前缀
Nuget package id reserved word restrictions? Nuget package id保留字限制?

It seems like that you are using an existing package id while publishing the package, or there is some reserved word.似乎您在发布 package 时正在使用现有的 package id,或者有一些保留字。 Please review these links and they will help you find the solution.请查看这些链接,它们将帮助您找到解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM