I am trying to read AssemblyInformationalVersion from an AssemblyInfo file with msbuild, but still fail. Below I get the numbers, but I need the full input inside the quotes:
<PropertyGroup> <Pattern>\[assembly: AssemblyInformationalVersion\(.(\d+)\.(\d+)\.(\d+)</Pattern> <In>@(ItemsFromFile)</In> <Out>$([System.Text.RegularExpressions.Regex]::Match($(In), $(Pattern)))</Out> </PropertyGroup> <Message Text="Output : $(Out.Remove(0, 41))"/>
This is the target line, for example:
[assembly: AssemblyInformationalVersion("0.3.0-pre01")]
Any idea?
source share