On Monday 30 May 2011, you wrote:
> I am using Tortoise SVN client, windows version, I want to attach the SVN
> revision number on the File version of binaries (dll/exe) before building
> the Visual Studio projects, now i am manually doing this. is there any way
> to automate this using SVN SDK? please provide the link.
If you need an API to use Subversion, I'd rather look at the various language
bindings that Subversion provides. Note that I meant Subversion, not
TortoiseSVN!
That said, you could e.g. use keyword replacement to get at some repository
information. Those also work for resource files which you can use to embed
version information into DLLs and EXEs.
One thing though: If you change one an unrelated file in a different project,
the repository's version number is bumped. Typically, the advise is to not use
the revision number for anything but in order to refer to a specific revision
inside the repository, i.e. treat it as a Subversion-internal artifact.
Instead, use your own versioning schema and create according tags with
meaningful names.
Lastly, if you really want some Subversion revision, as volatile as it is, you
can use the "svnversion" program. However, read the warnings, because it is
possible that that program doesn't give you a version number, e.g. if the
working copy is modified.
Good luck!
Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstra�e 75a, 22547 Hamburg, Deutschland
Gesch�ftsf�hrer: Thorsten F�cking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschlie�lich s�mtlicher Anh�nge ist nur f�r den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empf�nger sein sollten. Die E-Mail ist in diesem Fall zu l�schen und darf weder gelesen, weitergeleitet, ver�ffentlicht oder anderweitig benutzt werden.
E-Mails k�nnen durch Dritte gelesen werden und Viren sowie nichtautorisierte �nderungen enthalten. Domino Laser GmbH ist f�r diese Folgen nicht verantwortlich.
**************************************************************************************
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2753088
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-05-30 12:22:45 CEST