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
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:
and then in each update task