Improved code signing

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent 33f78ab092
commit 6224e1f545
  1. 3
      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("</PropertyGroup>") < 0) {
return cb("CSProj file does not contain PropertyGroups");
}
content = content.replace("</PropertyGroup>", "</PropertyGroup><PropertyGroup><SignAssembly>true</SignAssembly><AssemblyOriginatorKeyFile>" + settings.codeSigningKeyFile + "</AssemblyOriginatorKeyFile></PropertyGroup>");
}
return cb(null, content);

Loading…
Cancel
Save