[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: C# AssemblyInfo integration

From: David Darj <zid_at_alagazam.net>
Date: Thu, 27 Aug 2009 08:55:45 -0700 (PDT)

I've been using SubWCRev that's in the TortoiseSvn installation (I think it's downloadable seperately too).

First i create a "template"-file for the AssemblyInfo.cs called AssemblyInfo.cs.in
This is crated as a copy of the exisiting one.

Then replace the parts you want changed with SubWCRev placeholders like this:

[assembly: AssemblyVersion(‚Äč"1.2.3.$WCREV$")]

Then create a PreBuildEvent to run SubWCRev with appropriate parameters:
SubWCRev <wcpath> AssemblyInfo.cs.in AssemblyInfo.cs


Now it's the AssemblyInfo.cs.in file you should add to svn and remove the original one.

I've been using the same method for C++ project as well with good results.
Also used $WCMODS?1:0$ $WCMIXED?1:0$ to detect not committed changes and not fully updated wc's in the versionnumber (then usint wcrev as 3:rd part and 4:th path indicating changes like "10" means local mods.


ps. I'm not at work right now so maybe some details i the description is wrong but I hope you get the big picture.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-27 17:56:41 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.