| Author |
Message |
martincostello
Joined: 13 Sep 2011 Posts: 14 Location: London, UK
|
Posted: Thu Oct 06, 2011 12:54 pm Post subject: Using AssemblyFileVersion To Filter Builds |
|
|
We are looking at versioning our .NET assemblies in the same way as the .NET Framework assemblies are versioned. Therefore this would mean:
| Code: |
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.X")]
[assembly: AssemblyInformationalVersion("1.0.0.X")] |
where X is the build number.
This allows us to track our builds changing via the AssemblyFileVersion attribute, but means that the assembly's strong name doesn't change between builds so we don't need to worry about continuously updating configuration files (e.g. that reference full type names with version strings in them) for every build during development.
However, it appears that SmartAssembly is using the AssemblyVersion attribute to group together the builds, meaning that all error reports for every build appear to come from the same build, even though they didn't.
Is there a way to get SmartAssembly to report the build number from the AssemblyFileVersion attribute (or even AssemblyInformationalVersion), rather than the AssemblyVersion attribute?
Thanks,
Martin |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6344 Location: Red Gate Software
|
Posted: Thu Oct 06, 2011 1:33 pm Post subject: |
|
|
Hi Martin,
Nope, it's always going to use the AssemblyVersion attribute when it rebuilds the assembly. I suppose there is an assumption that all three of these things would match.
I believe we have a feature request in about changing this. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group