Restored InternalsVisibleTo rewrite

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent f10a5132e9
commit ee16646429
  1. 8
      BuildServer/lib/tasks/dotnetrewrite.js

@ -31,6 +31,14 @@ module.exports = function (params, processor) {
"repository: " + processor.context.owner + "/" + processor.context.reponame + "; " +
"branch: " + processor.context.branch + ")",
processAssemblyInfo = function (content, cb) {
if (!params.skipCodeSigning && !settings.skipCodeSigning) {
content = content.replace(
/InternalsVisibleTo\s*\(\s*\"([\w.]+)\"\s*\)/g,
function (match, p1) {
return "InternalsVisibleTo(\"" + p1 + ",PublicKey=" + settings.codeSigningPublicKey + "\")";
}
);
}
content = addAssemblyAttribute(content, "[assembly: AssemblyInformationalVersion(\"v" + version + "\")]");
return cb(null, content);
};

Loading…
Cancel
Save