Code analysis supported

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent ec9f30efb5
commit e6f5488033
  1. 3
      BuildServer/lib/tasks/dotnetcompile.js
  2. 2
      DotNetBuilder/CompileRequest.cs
  3. 4
      DotNetBuilder/Compiler.cs

@ -13,5 +13,8 @@ module.exports = function (params, processor) {
if (!params.skipCodeSigning && !settings.skipCodeSigning) {
compileParams.SigningKey = settings.codeSigningKeyFile;
}
if (!params.ignoreCodeAnalysis && !settings.ignoreCodeAnalysis) {
compileParams.RunCodeAnalysis = true;
}
return dotnetbuilderwrapper(compileParams, processor);
}

@ -9,5 +9,7 @@
public string OutputDirectory { get; set; }
public string SigningKey { get; set; }
public bool RunCodeAnalysis { get; set; }
}
}

@ -83,6 +83,10 @@ namespace MicroBuildServer.DotNetBuilder
globalProperty.Add("SignAssembly", "true");
globalProperty.Add("AssemblyOriginatorKeyFile", request.SigningKey);
}
if (request.RunCodeAnalysis)
{
globalProperty.Add("RunCodeAnalysis", "true");
}
var buildRequest = new BuildRequestData(request.SolutionPath, globalProperty, null, new [] { request.Target }, null);

Loading…
Cancel
Save