Skip to content

Commit c25dc44

Browse files
Use buildprops as override
1 parent c40def4 commit c25dc44

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

CommandLine/CodeConv.Shared/MSBuildWorkspaceConverter.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,10 @@ public async Task<Solution> AnalyzeSolutionAsync(IProgress<string> progress, str
7676
await RunDotnetRestoreAsync(_solutionFilePath);
7777

7878
// === STEP 1: Create and Configure Workspace ===
79-
var properties = new Dictionary<string, string>(_buildProps)
80-
{
81-
{ "Configuration", configuration },
82-
{ "RunAnalyzers", "true" },
83-
{ "RunAnalyzersDuringBuild", "true" }
84-
};
79+
var properties = new Dictionary<string, string>(_buildProps);
80+
properties.TryAdd("Configuration", configuration);
81+
properties.TryAdd("RunAnalyzers", true.ToString());
82+
properties.TryAdd("RunAnalyzersDuringBuild", true.ToString());
8583

8684
using var workspace = MSBuildWorkspace.Create(properties);
8785

0 commit comments

Comments
 (0)