From 6224e1f5453bc397450430e3bd162ab9df1d75b9 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 27 Aug 2015 12:29:00 +0300 Subject: [PATCH] Improved code signing --- BuildServer/lib/tasks/dotnetrewrite.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BuildServer/lib/tasks/dotnetrewrite.js b/BuildServer/lib/tasks/dotnetrewrite.js index 969c492..fadd350 100644 --- a/BuildServer/lib/tasks/dotnetrewrite.js +++ b/BuildServer/lib/tasks/dotnetrewrite.js @@ -37,6 +37,9 @@ module.exports = function (params, processor) { }, processCsproj = function (content, cb) { if (!params.skipCodeSigning && !settings.skipCodeSigning) { + if (content.indexOf("") < 0) { + return cb("CSProj file does not contain PropertyGroups"); + } content = content.replace("", "true" + settings.codeSigningKeyFile + ""); } return cb(null, content);