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]> 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].
> 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/CAPiUgVcRn7uHg3wOtji0FCMYKXWLav6QAtpqLruwd-E7vrdrWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to