Login | Register
My pages Projects Community openCollabNet

Discussions > users [DISABLED] > Re: C# AssemblyInfo integration

subversion
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

Re: C# AssemblyInfo integration

Author Yves Goergen <nospam dot list at unclassified dot de>
Full name Yves Goergen <nospam dot list at unclassified dot de>
Date 2009-08-27 13:03:58 PDT
Message On 27.08.2009 09:44 CE(S)T, Martin Rabl wrote:
> I did it with a "make" script (cmd-Batchfile), which patched the
> source and after it compiled the complete project - pretty ugly, but
> it runs quite good, and makes a new Revision every time I recompile.

Thank you. That was my try, too, before I turned to this mailing list
today. I didn't get it to work at first so I thought there could
possibly be an easier, more transparent way.

But it seems there is none and there is none desired by the SVN community.

So I headed back to my batch scripts, took out the magic spell book for
cmd.exe and a few UnxUtils tools and finally managed to create a
solution that runs as pre-build and post-build commands. The pre-build
script finds all required tools, the file itself, reads out the revision
number from a $Revision$ that I have inserted into a comment in
AssemblyInfo.cs, makes a backup of the file and patches the file to
replace the fourth version part for AssemblyVersion and
AssemblyFileVersion with the SVN revision. Then the build occurs. In the
post-build script, the backup file is restored so it won't show up as
changed in the project explorer and the developer is not bugged to
commit it every time.

It works now. It's a hack, but it seems to be stable enough.

--
Yves Goergen "LonelyPixel" <nospam.list@uncl​assified.de>
Visit my web laboratory at http://beta.unclassified.de

« Previous message in topic | 9 of 37 | Next message in topic »

Messages

Show all messages in topic

C# AssemblyInfo integration "Yves Goergen" <nospam dot list at unclassified dot de> "Yves Goergen" <nospam dot list at unclassified dot de> 2009-08-26 23:49:01 PDT
     Re: C# AssemblyInfo integration ryandesign Ryan Schmidt 2009-08-27 00:13:11 PDT
         Re: C# AssemblyInfo integration "Yves Goergen" <nospam dot list at unclassified dot de> "Yves Goergen" <nospam dot list at unclassified dot de> 2009-08-27 00:27:20 PDT
             RE: C# AssemblyInfo integration pilotbob Bob Archer 2009-08-27 07:04:30 PDT
             Re: C# AssemblyInfo integration doomster Ulrich Eckhardt 2009-08-27 07:17:22 PDT
                 Re: C# AssemblyInfo integration godefroi Mark Parker 2009-08-27 07:53:01 PDT
             RE: C# AssemblyInfo integration "Bryant Eastham" <beastham at pewla dot us dot pewg dot panasonic dot com> "Bryant Eastham" <beastham at pewla dot us dot pewg dot panasonic dot com> 2009-08-27 08:11:45 PDT
     Re: C# AssemblyInfo integration Martin Rabl <martin dot rabl at rablnet dot de> Martin Rabl <martin dot rabl at rablnet dot de> 2009-08-27 00:44:42 PDT
         Re: C# AssemblyInfo integration Yves Goergen <nospam dot list at unclassified dot de> Yves Goergen <nospam dot list at unclassified dot de> 2009-08-27 13:03:58 PDT
             Re: C# AssemblyInfo integration Kenneth Goldman <kgoldman at us dot ibm dot com> Kenneth Goldman <kgoldman at us dot ibm dot com> 2009-08-27 13:17:15 PDT
                 Re: C# AssemblyInfo integration Yves Goergen <nospam dot list at unclassified dot de> Yves Goergen <nospam dot list at unclassified dot de> 2009-08-27 23:11:42 PDT
                     Re: C# AssemblyInfo integration Daniel Becroft <djcbecroft at gmail dot com> Daniel Becroft <djcbecroft at gmail dot com> 2009-08-27 23:29:24 PDT
                     Re: C# AssemblyInfo integration Yves Goergen <nospam dot list at unclassified dot de> Yves Goergen <nospam dot list at unclassified dot de> 2009-08-28 09:45:30 PDT
                         Re: C# AssemblyInfo integration levyam Andy Levy 2009-08-28 09:48:33 PDT
                             Re: C# AssemblyInfo integration Yves Goergen <nospam dot list at unclassified dot de> Yves Goergen <nospam dot list at unclassified dot de> 2009-08-28 13:49:19 PDT
                                 RE: C# AssemblyInfo integration Aaron Friesen <aaron at cartopac dot com> Aaron Friesen <aaron at cartopac dot com> 2009-08-28 15:12:08 PDT
                                 Re: C# AssemblyInfo integration blair Blair Zajac 2009-08-28 16:04:37 PDT
                                 Re: C# AssemblyInfo integration steveking Stefan Küng 2009-08-29 00:52:12 PDT
                         Re: C# AssemblyInfo integration ryandesign Ryan Schmidt 2009-08-28 13:15:52 PDT
                 RE: C# AssemblyInfo integration "Jason Malinowski" <jason at jason-m dot com> "Jason Malinowski" <jason at jason-m dot com> 2009-08-28 00:36:14 PDT
                     Re: C# AssemblyInfo integration sshnug_si si 2009-08-31 19:20:58 PDT
                         Re: C# AssemblyInfo integration Yves Goergen <nospam dot list at unclassified dot de> Yves Goergen <nospam dot list at unclassified dot de> 2009-08-31 23:21:19 PDT
                             Re: C# AssemblyInfo integration sshnug_si si 2009-09-01 00:38:36 PDT
                                 Re: C# AssemblyInfo integration Yves Goergen <nospam dot list at unclassified dot de> Yves Goergen <nospam dot list at unclassified dot de> 2009-09-01 11:24:10 PDT
                                     Re: C# AssemblyInfo integration David Weintraub <qazwart at gmail dot com> David Weintraub <qazwart at gmail dot com> 2009-09-02 07:57:36 PDT
Page: of 2 « Previous | Next »
Messages per page: