Skip to content

Commit

Permalink
[Build] Fix the script that converts rsp to csproj when verbose is en…
Browse files Browse the repository at this point in the history
…abled. (#22008)

The script could not handle setting the roslyn analyzer reporting, we
need to add a single property for that in the csproj.
  • Loading branch information
mandel-macaque authored Jan 18, 2025
1 parent 289fba0 commit f3a1a59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/rsp-to-csproj/rsp-to-csproj.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ void ProcessFile (string file)
break;
case "noconfig": // this is already passed to csc by default
break;
case "reportanalyzer":
if (!properties.Contains (("ReportAnalyzer", "true")))
properties.Add (new ("ReportAnalyzer", "true"));
break;
default:
ReportError ($"Didn't understand argument '{a}'");
break;
Expand Down

0 comments on commit f3a1a59

Please sign in to comment.