[英]How to use this version: 10.1.3.10-1545tr103f5d format in chocolatey nuspec version
How to use version: 10.1.3.10-1545tr103f5d format in chocolatey nuspec version.如何使用版本:巧克力 nuspec 版本中的 10.1.3.10-1545tr103f5d 格式。 I want to include git commit id with chocolatey package version.我想将 git commit id 包含在巧克力包版本中。
Simply put, you can't.简单地说,你不能。
Chocolatey uses a non-strict semantic version numbering strategy, meaning that it will support 4 part version numbers, but you can't have a structure that is Chocolatey 使用非严格的语义版本编号策略,这意味着它将支持 4 部分版本号,但你不能有一个结构是
major.minor.build.build-number
What you could do is something like the following:你可以做的是像下面这样的事情:
10.1.3.10-g1545tr103f5d
Notice the introduction of the g
after the -
.请注意在-
之后引入了g
。 As long as you have a non-digit character here, you should be able to complete the choco pack
command.只要你这里有一个非数字字符,你应该就可以完成choco pack
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.