【问题标题】:What's the new assemblyinfo task in Albacore 2.0?Albacore 2.0 中新的 assemblyinfo 任务是什么?
【发布时间】:2015-05-04 09:46:38
【问题描述】:

我尝试使用最新版本的 Ruby/Rake 和 Albacore 更新我的构建脚本。来自

Ruby 2.0.0
Rake 10.1.1
Albacore 0.3.5

我将构建服务器更新为

Ruby 2.1.6
Rake 10.4.2
Albacore 2.3.22

我已经发现'msbuild' 变成了'build' 等等。但是我没有得到一个吊坠或'assemblyinfo' 的新名称。 'assemblyinfo' 是否已从 Albacore 包中删除?还是改名了?

这是我失败的最小脚本。

require 'rake'
require 'rake/clean'
require 'albacore'
require 'albacore/tasks/versionizer'
require 'albacore/ext/teamcity'

desc 'Create the assembly info file'
assemblyinfo :assembly_version do |cmd|
  puts "Here I am"
end

错误信息:

rake 中止! NoMethodError:main:Object 的未定义方法“assemblyinfo”

这是所有已安装 gem 的列表

*** LOCAL GEMS ***

albacore (2.3.22)
bigdecimal (1.2.4)
io-console (0.4.3)
json (1.8.1)
map (6.5.5)
mini_portile (0.6.2)
minitest (4.7.5)
nokogiri (1.6.5 x86-mingw32)
psych (2.0.5)
rake (10.4.2, 10.1.0)
rdoc (4.1.0)
rubyzip (1.1.7)
semver2 (3.4.2)
test-unit (2.1.6.0)

【问题讨论】:

    标签: ruby rake albacore


    【解决方案1】:

    您想将asmver 任务或asmver_files 用于多个项目。

    https://github.com/Albacore/albacore/wiki/asmver-and-asmver_files

    【讨论】:

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