Albacore msbuild任务问题
刚刚将 albacore 更新到 0.14 版本,遇到了一个大问题。
我当前的环境是:
- Ruby 1.9.1
- Rake 0.8.7
- Albacore 0.1.4
问题是,截至现在 我所有的 rake 构建都会抛出一个有趣的小异常:
undefined method 'push' for #<Enumerator:0x???????>
到目前为止,我已经将问题追溯到 albacore msbuild.rb 第 38 和 26 行。
说实话,我只是不知道为什么会发生这种情况。这里的一个小帮助是 rake 任务,它让我的声音变成灰色:)
desc "Build solution"
msbuild :build => :prepareOutput do |msb|
msb.properties :configuration => :Release
msb.targets :Clean, :Build
msb.solution = "../xxx/xxx/xxx.sln"
end
Just updated albacore to version 0.14 and ran into a major problem.
My current environment is:
- Ruby 1.9.1
- Rake 0.8.7
- Albacore 0.1.4
The problem is that as of now all my rake build throw a funny little exception:
undefined method 'push' for #<Enumerator:0x???????>
So far I have traced the problem to albacore msbuild.rb line 38 and 26.
To be honest I just don't have a clue why this is happening. As a little help here is the rake task that is turning my hear Grey :)
desc "Build solution"
msbuild :build => :prepareOutput do |msb|
msb.properties :configuration => :Release
msb.targets :Clean, :Build
msb.solution = "../xxx/xxx/xxx.sln"
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚将 albacore v0.1.5 推送到 rubygems.org,现在 ruby v1.9.1 一切正常(除了 ssh 和 sftp)。
我们使用的 ssh 和 sftp gems 尚未更新以支持 ruby 1.9.1。希望它们会在某个时候更新。在那之前...除了这两项任务之外的所有任务都应该有效。
i just pushed albacore v0.1.5 up to rubygems.org, which has everything working correctly - except ssh and sftp - for ruby v1.9.1 now.
the ssh and sftp gems that we are using have not been updated to support ruby 1.9.1. hopefully they will be updated at some point. until then... everything except for those two tasks should work.
经过一天的折腾,没有找到正确的答案。我无奈地不得不恢复到 albacore 版本 0.1.3。
因为gem规范中没有恢复功能,所以我通过简单的卸载和安装来完成它:)
我知道这不是一个真正的解决方案,所以如果有人有更好的想法,请回复。
After one day of fidling around and not finding the right answer. I reluctantly had to revert back to albacore version 0.1.3.
Because there is no revert functionality in the gem specifications I did it with a simple uninstall and install :)
I know that this not a real solution, so if anybody has a better idea please respond.