Build server prototype (integration with GitHub / NuGet / etc)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
micro-build-server/BuildServer/lib/tasks/dotnetcompile.js

21 lines
678 B

"use strict";
var settings = require('../../settings');
var dotnetbuilderwrapper = require('./dotnetbuilderwrapper');
module.exports = function (params, processor) {
var compileParams = {
command: "compile",
SolutionPath: processor.context.exported + "/" + params.solution,
Target: params.target,
OutputDirectory: params.overrideOutputDirectory
};
if (!params.skipCodeSigning && !settings.skipCodeSigning) {
compileParams.SigningKey = settings.codeSigningKeyFile;
}
if (!params.ignoreCodeAnalysis && !settings.ignoreCodeAnalysis) {
compileParams.CodeAnalysisRuleSet = settings.codeAnalysisRuleSet;
}
return dotnetbuilderwrapper(compileParams, processor);
}