-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Currently the tool helpfully reports all the changed or affected projects, both in .proj and in json.
One thing that is missing is to be able to know what project have actually changed and what are affected by the change.
Reason
This information is extremely useful in certain CI/CD scenarious.
For example, when we want to automatically bump the major version for the project that were actually changed, but the affected projects would probably get only a patch version bump.
Possible implementation
I see that internally the tool does have all this information, and I think that it'd be beneficial to propagate it into the output.
Json output can contain a new State field:
[
{
"Name": "Project1",
"FilePath": "/path/to/project1.csproj",
"State": "Changed"
},
{
"Name": "Project2",
"FilePath": "/path/to/project2.csproj",
"State": "Affected"
},
]And for MSBuild we can have two item groups (Changed and Affected):
<Project Sdk="Microsoft.Build.Traversal/3.0.3">
<ItemGroup Label="Changed">
<ProjectReference Include="/path/to/project1.csproj" />
</ItemGroup>
<ItemGroup Label="Affected">
<ProjectReference Include="/path/to/project2.csproj" />
</ItemGroup>
</Project>leonardochaia
Metadata
Metadata
Assignees
Labels
No labels