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.
28 lines
870 B
28 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
|
|
};
|
|
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);
|
|
}
|
|
|