Skip to content

Projects that differ only by the SolutionConfiguration property are hard to diagnoseΒ #13

@rainersigwald

Description

@rainersigwald

I just chased down a build where the build structure was

graph TD
build.proj --> Solution.sln
build.proj --> Solution.distinct.sln
Solution.sln --> Library.csproj
Solution.distinct.sln --> Distinct.csproj
Solution.distinct.sln --> Distinct.Tests.csproj
Distinct.Tests.csproj --> Library.csproj
Loading

In this configuration, Library.csproj builds twice, with distinct SolutionConfiguration property XML values. But since SolutionConfiguration is usually the same across a whole build (it's computed at the solution level and passed to all child projects and not usually mutated), this tool currently elides it entirely--so it was not at all obvious that a difference in SolutionConfiguration was the property difference causing a build race, even looking at the output.

We should add a case that detects distinct SolutionConfigurations and if there is more than one value, report it everywhere or at least flag the second discovered SolutionConfiguration in the output.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions