Version-in-a-text-file
*.version.txt
Release ${Major}.${Minor}.${Build}.${Revision}
Windows Manifest File
WMManifest.xml
(?'Before'Version=")([0-9]+\.[0-9]+)(?'After'\.[0-9]+\.[0-9]+")
${Before}${Major}.${Minor}${After}
C# Source
*.cs
(?'Before'AssemblyVersion\(")([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?'After'"\))
${Before}${Major}.${Minor}.0.0${After}
(?'Before'AssemblyFileVersion\(")([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?'After'"\))
${Before}${Major}.${Minor}.${Build}.${Revision}${After}
(?'Before'AssemblyProduct\(")([^"]*)(?'After'"\))
${Before}${Product}${After}
(?'Before'AssemblyCopyright\(")([^"]*)(?'After'"\))
${Before}${Copyright}${After}
(?'Before'AssemblyCompany\(")([^"]*)(?'After'"\))
${Before}${Company}${After}
Windows RC File
*.rc
(?'Before'FILEVERSION )([0-9]+,[0-9]+,[0-9]+,[0-9]+)
${Before}${Major},${Minor},${Build},${Revision}
(?'Before'PRODUCTVERSION )([0-9]+,[0-9]+,[0-9]+,[0-9]+)
${Before}${Major},${Minor},${Build},${Revision}
(?'Before'"FileVersion",[ \t]*")([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?'After'")
${Before}${Major}.${Minor}.${Build}.${Revision}${After}
(?'Before'"ProductVersion",[ \t]*")([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?'After'")
${Before}${Major}.${Minor}.${Build}.${Revision}${After}
WiX Files
*.wxi
*.wxs
(?'Before'ProductVersion = ")([0-9]+\.[0-9]+)(?'After'")
${Before}${Major}.${Minor}${After}
(?'Before'ProductBuild = ")([0-9]+\.([0-9]|[1-9][0-9]))(?'After'")
${Before}${Build}.${Revision}${After}
.NET Config Files
*.config
(?'Before', +Version=)\d+\.\d+(?'After'\.0\.0 *,)
${Before}${Major}.${Minor}${After}
Visual Studio Project Files
*.csproj
(?'Before'<OutputName>" + projectName + @"_)([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?'After'</OutputName>)
${Before}${Major}.${Minor}.${Build}.${Revision}${After}
VSIX Manifest
*.vsixmanifest
(?'Before'<Version>)([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)(?'After'</Version>)
${Before}${Major}.${Minor}.${Build}.${Revision}${After}