From 6ebcf4e31f81058a6179d0377a4a6c69dcb90efe Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 21 Oct 2015 16:26:00 +0300 Subject: [PATCH] New assembly attributes are always added to the end of AssemblyInfo.cs --- BuildServer/lib/tasks/dotnetrewrite.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/BuildServer/lib/tasks/dotnetrewrite.js b/BuildServer/lib/tasks/dotnetrewrite.js index 9d7498a..a38cb84 100644 --- a/BuildServer/lib/tasks/dotnetrewrite.js +++ b/BuildServer/lib/tasks/dotnetrewrite.js @@ -6,11 +6,7 @@ var glob = require('glob'); var settings = require('../../settings'); var addAssemblyAttribute = function (content, attribute) { - var regex = /\[\s*assembly/; - if (regex.test(content)) { - return content.replace(regex, attribute + "\r\n[assembly"); - } - return content + attribute + "\r\n"; + return content + "\n" + attribute + "\n"; } module.exports = function (params, processor) {