【问题标题】:i try to increment Assembly File version and Assembly info not found,我尝试增加程序集文件版本和未找到程序集信息,
【发布时间】:2019-10-25 08:05:41
【问题描述】:

嗨, 我有一个空的 Api.NET 核心项目。我尝试增加程序集文件版本。 为此,我使用扩展更新“程序集信息”。

像这样:

我输入了这样的文件版本:

我曾尝试输入此参数:$(Build.BuildNumber)$(MajorVersion).$(MinorVersion).$(PatchVersion).$(BuildId)

但是我的最终结果版本没有设置:

我看到了程序集信息扩展的文档,但我没有找到任何程序集信息

你对此有什么想法吗?

谢谢

【问题讨论】:

    标签: asp.net-core azure-devops continuous-integration version continuous-deployment


    【解决方案1】:

    我找到了一个没有这个扩展的更好的解决方案: 我使用 dotnet build 和 dotnet publish 命令。 在我的构建步骤中,我将/p:Version=$(Build.BuildNumber) 添加到争论中:

    我的发布步骤同上:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-26
      • 1970-01-01
      • 2013-05-16
      相关资源
      最近更新 更多