【问题标题】:Teamcity AssemblyInfo patcher not workingTeamcity AssemblyInfo 修补程序不起作用
【发布时间】:2016-04-12 13:37:40
【问题描述】:

尝试使用 AssemblyInfo Patcher 时,我在 TeamCity 构建日志中收到以下错误消息:

[更新程序集版本] 更新 C:...\work\xxxxxxxxxx\GlobalAssemblyInfo.cs 中的程序集版本 [10:15:28][更新程序集版本] 程序集文件版本已指定,但无法在文件 C:...\work\xxxxxxxxxxxxx\GlobalAssemblyInfo.cs 中修补。是否缺少必要的属性? [10:15:28]

GlobalAssemblyInfo.cs 文件与解决方案文件位于同一目录中。 可能是权限问题?

使用 TeamCity Enterprise 9.1.5(内部版本 37377)

我的 GlobalAssemblyInfo.cs:

using System;
using System.Reflection;
using System.Runtime.InteropServices;


[assembly: AssemblyCompany("xxxxxxx")]
[assembly: AssemblyProduct("xxxxxxx")]
[assembly: AssemblyCopyright("xxxxxxxxxxxxxxxx")]
[assembly: AssemblyTrademark("")]


[assembly: AssemblyConfiguration("xxxxx")]
[assembly: AssemblyDescription("xxxxxxx")]


[assembly: CLSCompliant(true)]


[assembly: ComVisible(false)]


[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.0")]

编辑:

甚至尝试使用汇编版本格式:0.0.1.1 在 TeamCity 中硬编码...

谢谢

【问题讨论】:

    标签: teamcity assemblyinfo


    【解决方案1】:

    GlobalAssemblyInfo.cs 文件中应该有以下属性:AssemblyVersion、AssemblyFileVersion 和 AssemblyInformationalVersion。详情请见documentation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多