From 480493b8a715672e72ead97577bc79a5fecd5f4d Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Fri, 23 Oct 2015 14:43:00 +0300 Subject: [PATCH] Improved AssemblyInformationalVersion --- BuildServer/lib/tasks/dotnetrewrite.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BuildServer/lib/tasks/dotnetrewrite.js b/BuildServer/lib/tasks/dotnetrewrite.js index a38cb84..6f20395 100644 --- a/BuildServer/lib/tasks/dotnetrewrite.js +++ b/BuildServer/lib/tasks/dotnetrewrite.js @@ -22,10 +22,10 @@ module.exports = function (params, processor) { version = date.getFullYear() + "." + (date.getMonth() + 1) + "." + date.getDate() + "." + - ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()) + " (" + + (date.getHours() * 100 + date.getMinutes()) + "; " + "built from " + processor.context.rev + "; " + "repository: " + processor.context.owner + "/" + processor.context.reponame + "; " + - "branch: " + processor.context.branch + ")", + "branch: " + processor.context.branch, processAssemblyInfo = function (content, cb) { if (!params.skipCodeSigning && !settings.skipCodeSigning) { content = content.replace( @@ -35,7 +35,7 @@ module.exports = function (params, processor) { } ); } - content = addAssemblyAttribute(content, "[assembly: AssemblyInformationalVersion(\"v" + version + "\")]"); + content = addAssemblyAttribute(content, "[assembly: AssemblyInformationalVersion(\"" + version + "\")]"); return cb(null, content); };