Vs.net solution with prism project writes invalid version to assemblyinfo

I am testing Finalbuilder with a Delphi Prism project. I am using the vs.net build action and want to update the version.

It seems to write an incorrectly formatted AssemblyVersion string to the AssemblyInfo.pas file:

[assembly: AssemblyVersion(0.3.2.1)]

The build fails, and it seems to be because the version string is not encapsulated in single quotation marks ('').

Without the version update option the build seems to work fine.

What can I do to make the version update function correctly?

Did the attribute exist in the file before or is this being added to the file by FinalBuilder. If an attribute already exists in a file, then FinalBuilder makes it’s decision based on whether there are quotes there or not. The reason for this is that the parser has no actual knowledge about particular attributes, it treats them all the same so if there are quotes there already then it will respect that, if there are not quotes there it will respect that. When adding a new attribute it will use whatever is specified in the value.

The AssemblyVersion attribute is already present in the file, but Finalbuilder does not respect the existing quotes.

Before:

[assembly: AssemblyVersion('0.1.0.1')]

After:

[assembly: AssemblyVersion(0.3.0.1)]
 

The action used to build is the VS. Net Solution build, and I have checked the "Assembly Version" option and entered the new version on the ".NET version" tab in the action properties.

Thanks, I was able to reproduce it here, we’ll have a build with the fix available later today.

Hi Rasmus,

Here’s the new build of FinalBuilder which should fix the version updating issues you were having:

URL: https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1555.exe

Regards,
Paul.

Thank you for the quick fix, unfortunately, there is still a small issue:
It is now adding the quotes, but missing a closing square bracket.

After FB changes the assemblyversion, the line looks like this:

[assembly: AssemblyVersion('0.3.0.2')

- note the missing ] at the very end.

 

My apologies, the change I made to the parser last week didn’t quite work as expected, didn’t have prism installed to test with. I have now installed prism (had some issues with licensing) and have fixed and tested fix :

https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_1560.exe

Excellent, it seems to work now.
Thank you again for the quick fix.