Source control revision number

Sep 8, 2011 at 4:13 PM

Would it be possible to use source control revision number as part of the version?

Sep 15, 2011 at 9:14 AM
Edited Sep 15, 2011 at 9:15 AM

It is already possible if you use subversion!

I've wrote a plugin for Build Version Increment which inserts the revision as part of the version. For more information and download visit:
http://www.crea-doo.at/weblog/2011/04/26/automatically-use-subversion-revision-as-version-in-net-projects/

Sep 15, 2011 at 1:29 PM

Cool! Thank you.

Sep 15, 2011 at 1:32 PM

Why don't you add your code to this project?

Sep 16, 2011 at 2:31 AM
Edited Sep 16, 2011 at 2:33 AM

Haven't tried crea-doo, but there is also on codeplex happyturtle pluggin, for Build Version Increment which adds svn support. I just posted a patch today to make it work with Build Version Increment 2.5. Make sure you also d/l the or it won't work. The patch also contains an incrementor of my own to split the svn rev # bettween build and revision number, since .net does not support numbers higger than 65535.

http://happyturtle.codeplex.com/

patch : http://www.codeplex.com/Download?ProjectName=happyturtle&DownloadId=281838

Sep 16, 2011 at 3:39 AM

How would I apply the patch file?

Could you point me out to a help or manual?

Sep 16, 2011 at 1:45 PM

Well if you have TortoiseSVN you can check out the project and apply the patch over it. If not, you will probably find the patching process a bit complicated. I could send you the sources or even the compiled binaries if you wish.

Sep 16, 2011 at 2:06 PM

Are these changes in the latest release of "Build Version Increment"? If they are not, could you post binaries here or perhaps create new release?

Sep 16, 2011 at 2:32 PM

Unfortunately the SVN pluggin is not integrated with "Build Version Increment". There has been a discussion about it some time ago and the developpers of BVI did not want to ship SharpSvn (which is 3mb) to everyone. There was also a licence issue if I recall.

Anyway, BVI have a plugin system and the SVN pluggin (HappyTurtle) uses that. I cannot post the binaries or make a release for the SVN pluggin (HappyTurtle) because I am not a developper of the project. I have tried to contact the developper to no avail yet. The project seems abandonned. If nothing moves in the next few days, I will probably fork the project and create a new one here on codeplex. I'll update this thread if I do so.

In the meantime, I can send you the binaries by email in a zip, the are juste under 4mbs. Just send me your email address by private message using my codeplex profile.

Sep 16, 2011 at 2:40 PM

Thank you.

I've figured out how to apply the patch and I am good for now.

Will be waiting for you to add this to BVI one way or the other.