Last post Jun 16, 2019 10:51 AM by mgebhard
Member
281 Points
1002 Posts
Jun 16, 2019 10:10 AM|robby32|LINK
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
All-Star
53101 Points
23659 Posts
Jun 16, 2019 10:51 AM|mgebhard|LINK
robby32 I am looking to update my assembly file info via a script.
You cannot update an assembly version form JavaScript. JavaScript runs in a browser. Use Visual Studio.
https://support.microsoft.com/en-us/help/556041
Member
281 Points
1002 Posts
How can I use RegeX pattern replacment for the following.
Jun 16, 2019 10:10 AM|robby32|LINK
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
All-Star
53101 Points
23659 Posts
Re: How can I use RegeX pattern replacment for the following.
Jun 16, 2019 10:51 AM|mgebhard|LINK
You cannot update an assembly version form JavaScript. JavaScript runs in a browser. Use Visual Studio.
https://support.microsoft.com/en-us/help/556041