Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: SVN Client SDK?

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Back to topic list

Re: SVN Client SDK?

Author Ulrich Eckhardt <ulrich dot eckhardt at dominolaser dot com>
Full name Ulrich Eckhardt <ulrich dot eckhardt at dominolaser dot com>
Date 2011-05-30 03:22:43 PDT
Message 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.
********************​********************​********************​********************​******

« Previous message in topic | 2 of 3 | Next message in topic »

Messages

Show all messages in topic

SVN Client SDK? Thodukayil Mathew Jais <thodukotron at gmail dot com> Thodukayil Mathew Jais <thodukotron at gmail dot com> 2011-05-30 02:58:23 PDT
     Re: SVN Client SDK? Ulrich Eckhardt <ulrich dot eckhardt at dominolaser dot com> Ulrich Eckhardt <ulrich dot eckhardt at dominolaser dot com> 2011-05-30 03:22:43 PDT
         Re: SVN Client SDK? simonlarge Simon Large 2011-05-30 08:27:45 PDT
Messages per page: