I am trying to get the version number out of the AssemblyInfo.vb file and replace it with a number that I choose.
Dim text as string = string.empty
Using sr As New StreamReader("C:\foo\AssemblyInfo.vb")
text = sr.ReadToEnd()
Dim fileVerReg As New Regex("^[^']*(AssemblyVersion[(""].)([^""]*)")
Dim m As Match = fileVerReg.Match(text)
If m.Success Then
MsgBox(m.Groups(2).Value)
End If
End Using
This is just for me to try and get the version, ideally I would need to be doing a replace.