Change to PROMS version number to 1.2 to indicate the builds that include Enhanced Documents
This commit is contained in:
parent
e36cc1847a
commit
8a1e5caff2
@ -26,6 +26,31 @@ namespace AdjustBuildRevision
|
||||
bool changed = false;
|
||||
for (int i = 0; i < lines.Length;i++ )
|
||||
{
|
||||
string line = lines[i];
|
||||
string outline = line;
|
||||
if (line.Contains("AssemblyVersion") || line.Contains("AssemblyFileVersion"))
|
||||
{
|
||||
outline = Regex.Replace(line, @"([0-9]*)\.([0-9]*)\.([0-9]*)\.([0-9]*)""\)", DateTime.Now.ToString("1.2.yyMM.dHH") + "\")");
|
||||
if (outline != line)
|
||||
{
|
||||
Console.WriteLine("Before: '{0}'", line);
|
||||
Console.WriteLine("After: '{0}'", outline);
|
||||
lines[i] = outline;
|
||||
changed = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("No change: '{0}'", line);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (changed)
|
||||
{
|
||||
if (!fi.IsReadOnly) fi.IsReadOnly = false;
|
||||
StreamWriter sw = fi.CreateText();
|
||||
foreach (string line in lines)
|
||||
sw.WriteLine(line);
|
||||
sw.Close();
|
||||
string line = lines[i];
|
||||
string outline = line;
|
||||
if (line.Contains("AssemblyVersion") || line.Contains("AssemblyFileVersion"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user