|
Updating the AssemblyVersion attribute from CCNet: msg#00039windows.dotnet.ccnet.devel
Hi, I have an idea of feature for ccnet and would like your opinion : a plugin or task of some kind which would update the assembly version attribute in source code. To illustrate, today I use a NAnt task for that : <updateversion major="-1" minor="-1" build="${build.number}" revision="-1"> <fileset basedir="${path::get-directory-name(solutionFile)}"> <include name="**/AssemblyInfo.cs"/> <include name="**/CommonAssemblyInfo.cs"/> <include name="**/AssemblyInfo.cpp"/> </fileset> </updateversion> The behavior is rather obvious, except "-1" which means "do not change". As well, it can handle c++ files. The implementation relies on a regex match/replace. Sure I can keep this in my NAnt build like today, but I'd personally push to integrate some built-in mechanism in CCNet to ease version increment (which would then be available for any builder, including devenv builder). My first idea was that it was maybe "overfeatured", but I realized that many people learn all this the hard way. what do you think ? regards Thibaut ps : this bring another question : is there more details or inner thoughts about the plugin model Owen evoked a couple of weeks ago ? ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: SVN autogetsource: 00039, Martin Aliger |
|---|---|
| Next by Date: | Re: SVN autogetsource: 00039, Thibaut Barrère |
| Previous by Thread: | SVN autogetsourcei: 00039, Thibaut Barrère |
| Next by Thread: | Re: Updating the AssemblyVersion attribute from CCNet: 00039, Mike Roberts |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |