I'm seconding the updating of the existing plugin That being said, I did write https://github.com/halkeye/AssemblyVersionChanger/blob/master/Main.cs a couple jobs ago that created a cli tool that would update the assembly information. That might be a good starting point.
There might be better ideas on the user list if you don't want to modify the plugin. On Friday, June 24, 2016 at 8:34:37 AM UTC-7, slide wrote: > > I use the MSBuild Community tasks to do this. I generate a > GlobalVersion.cs file during the build which is included in my projects. > This file contains common assembly attributes. You could even pass in git > or other SCM revision information as a property to be included in the > version. > > On Fri, Jun 24, 2016 at 5:24 AM Tom Moore <[email protected] > <javascript:>> wrote: > >> For Company and Copyright, why aren't you just editing the file and >> saving it in your repository? Those values shouldn't change enough to >> warrant build time modification. >> >> The values in AssemblyInfo.cs that are most likely candidates for build >> time modification are: >> [assembly: AssemblyVersion("0.0.0")] >> [assembly: AssemblyFileVersion("0.0.0")] >> [assembly: AssemblyInformationalVersion("0.0.0")] >> >> The last two: >> AssemblyFileVersion >> AssemblyInformationalVersion >> >> don't get into the file by default and have to be added. >> >> >> On Friday, June 24, 2016 at 2:49:43 AM UTC-4, Oleg Nenashev wrote: >>> >>> I think it would be better to integrate the functionality into an >>> existing plugin like >>> https://wiki.jenkins-ci.org/display/JENKINS/Change+Assembly+Version . >>> >>> пятница, 24 июня 2016 г., 7:16:07 UTC+2 пользователь Vadivel Natarajan >>> написал: >>>> >>>> Hi All, >>>> >>>> I would like to modify the AssemblyCopyright and AssemblyCompany in >>>> AssemblyInfo.cs file of a .NET project. As far as i searched, i didn't get >>>> an any idea. So i decided to write a plugin to achieve this. So, what i >>>> have to do first like what are the softwares that should install in server >>>> machine and in which programming language do i need to written the code? >>>> How to test the written plugin? >>>> >>>> >>>> Below are the things i need to change in the file >>>> >>>> [assembly: AssemblyCopyright("2001- 2010")] >>>> [assembly: AssemblyCompany("The XXXX Software Foundation")] >>>> >>>> >>>> Note: I have tried it using text find/replace in jenkins. No use in >>>> that. So, please do let me know is there any other way to achieve this. >>>> >>>> >>>> Regards, >>>> Vadivel >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/5f1d1176-16d6-4f8c-a615-f4d02fd228a6%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-dev/5f1d1176-16d6-4f8c-a615-f4d02fd228a6%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a02c9dbb-516b-4444-9a75-c7ca12dc95b6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
