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 simonlarge
Full name Simon Large
Date 2011-05-30 08:27:45 PDT
Message On 30 May 2011 11:26, Ulrich Eckhardt <ulrich.eckhardt@​dominolaser.com> wrote:
> 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

You could also look at SubWCRev as a means of putting the WC's highest
commit revision into an include file. This is what we do for
TortoiseSVN itself.

Simon

--
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net

« Previous message in topic | 3 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: