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

  • Question

  • User1253338400 posted


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

    So if I have in my AssemblyInfo.cs file.

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

    I want to increment the 0 ,hence to 1, so I have
    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 ?


    Sunday, June 16, 2019 10:10 AM