Q:

How do I update multiple AssemblyInfo.cs files individually with the Albacore assemblyinfo task?

I have a solution with a number of projects. I would like to update the AssemblyInfo.cs file in each project individually. Most of the info in the files will be the same, but there may be one or two things that I want to be different. I haven't been able to figure out a way to do this with the Albacore assemblyinfo task.
The type of syntax I am after would be
# I know this won't work but I would like to be able to call the assemblyinfo 
# task a number of times and each time pass in at least the input_filename
task :update_assemblyinfo_files do
  assemblyinfo '/src/myproj1/properties/assemblyinfo.cs'
  assemblyinfo '/src/myproj2/properties/assemblyinfo.cs'
end

assemblyinfo :assemblyinfo do |asm|
  asm.version = version
  asm.input_file = <an-input-parameter>
end

A:

An idea can be to store your common assemblyinfo params somewhere in your rakefile (or in an external file, using yaml for example) that can be read by a method into rake and then configure your task as follows:
task :update_assemblyinfo_files => [:update_a, :update_b, :update_c]

and then in each update task
assemblyinfo :update_a do |asm|
  common_info = get_common_assemblyinfo()
  asm.version = common_info[:version]
  asm.company_name = common_info[:company_name]
  asm.product_name = common_info[:product_name]
  asm.output_file = "your_file_path"
end

def get_common_assemblyinfo()
  #read your yaml here and return it
end

