Albacore / albacore

Albacore is a professional quality suite of Rake tasks for building .NET or Mono based systems.
www.albacorebuild.net
221 stars 64 forks source link

Engine is nil error with asmver_files method #188

Closed alimunn-CAT closed 8 years ago

alimunn-CAT commented 8 years ago

Hi when using the asmver_files method I get the following error

rake aborted!
ArgumentError: engine is nil
C:/Ruby200/lib/ruby/gems/2.0.0/gems/albacore-2.5.4/lib/albacore/task_types/asmver/file_generator.rb:15:in `initialize'

This is my task in my rake script. Not really sure what I'm missing here.

 desc 'Update version numbers'
 asmver_files :versions do |a|
   a.files = FileList['**/Properties/AssemblyVersionInfo.cs']
   a.attributes assembly_version: solution_version,
                assembly_file_version: solution_version,
                assembly_description: 'Build: #{build_version}'

   a.handle_config do |proj,conf|
     conf 
   end 
 end 

Thanks

Ali

haf commented 8 years ago

files is a file list of the csproj files, not of your assembly version info files.

haf commented 8 years ago

Not a bug.