Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared Projects have unexpected behavoiur in mpc #971

Closed
thorgeirk11 opened this issue Jul 5, 2020 · 0 comments
Closed

Shared Projects have unexpected behavoiur in mpc #971

thorgeirk11 opened this issue Jul 5, 2020 · 0 comments

Comments

@thorgeirk11
Copy link
Contributor

thorgeirk11 commented Jul 5, 2020

Bug description

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)

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

thorgeirk11 added a commit to thorgeirk11/MessagePack-CSharp that referenced this issue Jul 5, 2020
A '..\' results in an incorrect root folder.
Allowing files outside the shared project to be included.
@AArnott AArnott closed this as completed in 97af9f8 Jul 5, 2020
AArnott added a commit that referenced this issue Jul 5, 2020
Fix #971 Shared Projects incorrecly included.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant