【问题标题】:After creation NuGet package from package.nuspec issue with name of .nupkg从 package.nuspec 问题创建 NuGet 包后,名称为 .nupkg
【发布时间】:2017-02-19 07:54:20
【问题描述】:

NuGet 命令:

E:\plugins\nuget-agent\bin\JetBrains.TeamCity.NuGetRunner.exe
E:\tools\NuGet.CommandLine.DEFAULT\tools\NuGet.exe pack
E:\work\341fd6e3e508cc03\ETL\FgCloudServiceHost\package.nuspec -OutputDirectory
E:\work\341fd6e3e508cc03\ETL\FgCloudService\obj\octopacked -Version 17.02.18.1914-development -Properties Configuration=Release

我得到了

Successfully created package 'E:\work\341fd6e3e508cc03\ETL\JmineopsCloudService\obj\octopacked\fg.17.2.18.1914-development.nupkg'.

请注意 17.02.18.1914-..... -版本 17.02.18.1914-开发 -属性配置=发布 但在创建 17.2.18.1914-.... 0 在哪里?

【问题讨论】:

  • 您好,欢迎来到本网站!您能否添加有关您的问题的更多详细信息,因为目前尚不清楚您要解决的问题是什么。

标签: nuget teamcity azure-worker-roles octopus-deploy


【解决方案1】:

NuGet 使用的版本号遵循Semantic Versioning。 “SemVer”规范包括以下内容:

正常的版本号必须采用 X.Y.Z 的形式,其中 X、Y 和 Z 非负整数,并且不得包含前导零

换句话说,版本号 17.02.18.1914-development 由 NuGet.exe 标准化为 17.2.18.1914-development(去除前导零)。

您的路径中有“octopacked”(来自 OctoPack),因此您可能有兴趣在 Octopus Deploy 支持系统中查看对 similar question 的回复。

【讨论】:

  • 谢谢伙计。 @丹尼尔布里克森
猜你喜欢
  • 2017-09-02
  • 2016-11-04
  • 2021-04-02
  • 1970-01-01
  • 1970-01-01
  • 2020-11-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多