Bug in AssemblyInfo updater action

Source file
SolutionAssemblyInfo.cs

Properties to update
AssemblyVersion:%Version%
AssemblyInformationalVersion:%DisplayVersion%

Log says:

Updated property ‘AssemblyVersion’ to ‘“1.0.1403.1823”’ in file ‘SolutionAssemblyInfo.cs’ 
Inserted property ‘AssemblyInformationalVersion’ with value ‘1.0.1403.1823’ into file 'SolutionAssemblyInfo.cs’

The inserted property gives a compilation error:

SolutionAssemblyInfo.cs(34,44,34,49): error CS1026: ) expected

Hi Geert,

Continua doesn’t know any specifics about the attributes you are adding. Some attributes such as ComVisible for example must not have quotes, so you have to manually specify the quotes where required. e.g.

AssemblyVersion: "%Version%"
AssemblyInformationalVersion: "%DisplayVersion%"

If you are updating an existing value, then Continua will look to see if the existing value is quoted and preserve the quotes.  This is why AssemblyVersion property gets quotes added but not the AssemblyInformationalVersion in this case.


Ah, that explains. Thanks for the info.