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);