[nem-en] Assembly Version from SVN
Kamil Skalski
kamil.skalski at gmail.com
Mon Jan 15 23:28:42 CET 2007
Hello!
I've just implemented the simple version of our new
AssemblyVersionFromSVN macro/attribute. What does it do? It simply
executes the 'svn info' shell command and if it succeeds it replaces
the "SVN" string from given assembly version string with the read
value of svn revision, otherwise (command does not succeed it uses *)
Note that - the command is executed in directory from which compiler
was executed, so it might be some crazy path in IDE.. :(
It will work only if you have 'svn' command on PATH, so I'm not sure
if this is good approach, as people using entirely visual tools won't
have the feature - I looked a little bit at svn metadata stored on
disk, but I'm not sure where the current revision number is exactly
stored.
The usage is simple:
[assembly: Nemerle.Utility.AssemblyVersionFromSVN ("1.2.3.SVN")]
I applied the attribute to MSBuild task - you you are all ok with how
it works I will boot the compiler and annotate all assemblies with new
attribute.
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list