You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shared projects are not accounted for correctly when mpc is processing a .csproj with shared projects.
Repro steps
Create a three project: Project1, Project2_Shared, Project3_unrelated.
Add a sheared project reference between Project1 and Project2_shared.
Add a dummy class with MessagePackObject to all three projects.
Run mpc -i Project1.csproj -o Generated.cs.
Expected: The Generated parser only contains the classes from Project1 and Project2_shared.
Actual: The Generated Parse contains all three classes. Which results in a compile error (Project3 class does not exist in Project1)
Bug description
Shared projects are not accounted for correctly when mpc is processing a .csproj with shared projects.
Repro steps
mpc -i Project1.csproj -o Generated.cs.
Expected: The Generated parser only contains the classes from Project1 and Project2_shared.
Actual: The Generated Parse contains all three classes. Which results in a compile error (Project3 class does not exist in Project1)
I have made a Repo with the setup required to reproduce the error: https://github.com/thorgeirk11/MessagePackIssue_SharedProjects
I have a PR #972 that should fix the issue but I am not entirely sure if it results in some side-effects
The text was updated successfully, but these errors were encountered: