【发布时间】:2017-04-18 06:20:44
【问题描述】:
我正在尝试设置 TFS 构建以使用与内部版本号指定的版本不同的版本发布 nuget 版本(我使用内部版本号格式的构建定义名称的字符串并希望保留它这样)。
我将 -version $(MajorVersion).$(MinorVersion).$(Year:yy)$(DayOfYear).$(Rev:rr) 传递给 Packager 步骤,但它失败并显示此消息:
尝试从“MyProj.Contracts.nuspec”构建包。
[error]'$(MajorVersion).$(MinorVersion).$(Year:yy)$(DayOfYear).$(Rev:rr)' is not a valid version string.
[error]Parameter name: version
[error]Unexpected exit code 1 returned from tool NuGet.exe
我怎样才能做到这一点?
【问题讨论】:
标签: tfs continuous-integration tfsbuild azure-pipelines-build-task