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
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:
Done.
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.
/David
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].
|
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.