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.
38 lines
1.2 KiB
38 lines
1.2 KiB
9 years ago
|
"use strict";
|
||
|
|
||
7 years ago
|
import path = require("path");
|
||
|
import _ = require("underscore");
|
||
|
import settings = require("../../settings");
|
||
|
import dotnetbuilderwrapper = require("./dotnetbuilderwrapper");
|
||
9 years ago
|
|
||
7 years ago
|
export = (params, processor) => {
|
||
7 years ago
|
if (settings.isCodeAnalysisUnsupported && params.forceCodeAnalysis) {
|
||
|
processor.onError("Code analysis is not supported");
|
||
|
|
||
|
return processor.done();
|
||
|
}
|
||
|
|
||
7 years ago
|
const getAdditionalSigningParameters = () => {
|
||
|
if (settings.skipCodeSigning || params.skipCodeSigning) {
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
return { "SigningKey": settings.codeSigningKeyFile };
|
||
|
};
|
||
|
|
||
|
const skipCodeAnalysis = settings.isCodeAnalysisUnsupported
|
||
7 years ago
|
|| params.ignoreCodeAnalysis
|
||
7 years ago
|
|| (settings.ignoreCodeAnalysisByDefault && !params.forceCodeAnalysis);
|
||
|
|
||
|
const compileParams = {
|
||
|
"Configuration": params.configuration,
|
||
|
"OutputDirectory": params.overrideOutputDirectory,
|
||
|
"SkipCodeAnalysis": skipCodeAnalysis,
|
||
|
"SolutionPath": path.join(processor.context.exported, params.solution),
|
||
|
"Target": params.target,
|
||
|
"command": "compile"
|
||
|
};
|
||
7 years ago
|
|
||
7 years ago
|
return dotnetbuilderwrapper(_.extend(compileParams, getAdditionalSigningParameters()), processor);
|
||
8 years ago
|
};
|