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

29 lines
870 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
};
9 years ago
if (!settings.skipCodeSigning && !params.skipCodeSigning) {
compileParams.SigningKey = settings.codeSigningKeyFile;
}
if (settings.isCodeAnalysisUnsupported) {
if (params.forceCodeAnalysis) {
processor.onError("Code analysis is not supported");
processor.done();
return;
}
} else {
if (!settings.ignoreCodeAnalysisByDefault || params.forceCodeAnalysis) {
compileParams.CodeAnalysisRuleSet = settings.codeAnalysisRuleSet;
}
}
return dotnetbuilderwrapper(compileParams, processor);
}