【发布时间】:2019-03-19 08:26:17
【问题描述】:
尝试将 git commit id 添加到 .nuspec - 现在只是从命令提示符然后从 teamcity。
有没有办法做到这一点?
这是正确的方向“nuget pack -Properties Configuration=Release;commitId=SomethingSomething”还是我完全迷路了?
【问题讨论】:
-
请添加更多信息。无法理解。
-
我基本上只有一个 .nuspec 文件,我想在构建 nuget 包时使用 git commit Id 对其进行更新。我试过通过 TeamCity 来做,但我做不到,因此现在我只是想通过命令提示符来做 - 不知道这是否有意义?我不希望使用提交 id 来命名包编号,因为我已经弄清楚了,但我希望 .nuspec 文件中的提交 id 参数被实际的 git 提交 id 覆盖。
标签: nuget teamcity command-prompt git-commit nuspec