Only update project file if there's changes to apply.

This commit is contained in:
David Fowler 2014-01-26 02:36:59 -08:00
parent e0b89604ce
commit 513295e19c
1 changed files with 10 additions and 2 deletions

View File

@ -266,10 +266,18 @@ functions
}
string output = Path.Combine(projectDir, GetProjectFileName(projectName, targetFramework));
string current = File.ReadAllText(output);
Log("Generated {0}", output);
if (current != template)
{
File.WriteAllText(output, template);
File.WriteAllText(output, template);
Log("Generated {0}", output);
}
else
{
Log("No changes required for {0}", output);
}
}
}