Updated "UpdateAssemblyInfo" so it works with empty build number

This commit is contained in:
nikse.dk 2014-02-23 12:09:36 +01:00
parent d8c794434f
commit 0ac2923aaf

View File

@ -62,6 +62,8 @@ namespace UpdateAssemblyInfo
try
{
DoUpdateAssembly("[GITHASH]", clrHash.Result, template, target);
if (!clrTags.Result.Contains("-"))
clrTags.Result += "-0";
DoUpdateAssembly("[REVNO]", clrTags.Result.Split('-')[1] , target, target);
return 0;
}