Skip to content

Commit

Permalink
Hack to prevent overwriting of Analyzer results for 2-pass web projects
Browse files Browse the repository at this point in the history
- CSC gets called twice for Web projects, 2nd pass to compile Razor pages.  This ignores the 2nd pass.
  • Loading branch information
jonstelly committed Oct 29, 2018
1 parent 7faac8b commit 832e00a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Buildalyzer/AnalyzerResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ internal void ProcessProject(ProjectStartedEventArgs e)

internal void ProcessCscCommandLine(string commandLine)
{
if (string.IsNullOrWhiteSpace(commandLine))
//TODO: HACK - CSC gets called twice for Web projects with Razor pages, this ignores the 2nd pass
if (string.IsNullOrWhiteSpace(commandLine) || _cscCommandLineArguments != null)
{
return;
}
Expand Down

0 comments on commit 832e00a

Please sign in to comment.