Fixed code analysis flags

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent 40c78f9040
commit 1e74a43a60
  1. 7
      DotNetBuilder/Compiler.cs

@ -95,6 +95,11 @@ namespace MicroBuildServer.DotNetBuilder
globalProperty.Add("MBSBuilderPath", BuilderAssemblyDirectory); globalProperty.Add("MBSBuilderPath", BuilderAssemblyDirectory);
globalProperty.Add("CustomBeforeMicrosoftCSharpTargets", Path.Combine(BuilderAssemblyDirectory, "ImportStyleCop.targets")); globalProperty.Add("CustomBeforeMicrosoftCSharpTargets", Path.Combine(BuilderAssemblyDirectory, "ImportStyleCop.targets"));
} }
else
{
globalProperty.Add("RunCodeAnalysis", "false");
globalProperty.Add("CodeAnalysisRuleSet", string.Empty);
}
var buildRequest = new BuildRequestData(request.SolutionPath, globalProperty, "14.0", new [] { request.Target }, null); var buildRequest = new BuildRequestData(request.SolutionPath, globalProperty, "14.0", new [] { request.Target }, null);
@ -108,7 +113,7 @@ namespace MicroBuildServer.DotNetBuilder
logger.Messages.Add(Message.CreateError("BuildResult is false")); logger.Messages.Add(Message.CreateError("BuildResult is false"));
} }
return new Response(logger.Messages); return new Response(logger.Messages);
} }
} }
} }

Loading…
Cancel
Save