locked
How can I use RegeX pattern replacment for the following. RRS feed

  • Question

  • User1253338400 posted

    Hi 

    I am looking  to update my assembly file info via a script.

    So if I have in my AssemblyInfo.cs file.

    [assembly: AssemblyVersion("1.40.103.0")]
    [assembly: AssemblyFileVersion("1.40.103.0")]

    I want to increment the 0 ,hence to 1, so I have 1.40.103.1
    I am using :

    RegExPattern : Assembly(\w*)Version\("(\d+).(\d+).(\d+).(\d+)"\)
    ReplacementPattern: Assembly$1Version("$2.$3.$4.%s")

    I seem to find the match but get an error trying to replace. It says "Please provide a valid version pattern"

    How can i achieve this ?

    Thanks

    Sunday, June 16, 2019 10:10 AM

Answers