-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add Referenced Projects #160
Conversation
@@ -59,7 +59,7 @@ public void CreatesCompilationOptions() | |||
} | |||
|
|||
[TestCase(false, 1)] | |||
[TestCase(true, 2)] | |||
[TestCase(true, 3)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Essentially this is the change in behavior, you don't need to add child projects now when addProjectReferences
is used. If the old behavior is still desired, perhaps we should change the parameter to an enum and support both variants?
To counteract the guilt I'd feel bumping this PR, I bought you a coffee 😆 |
Lol. Was already planning to take a look at the open Buildalyzer PRs this weekend, but the beverage is appreciated! |
😄 it's the least I could do. I think I may not need this anymore, what I need is basically this: but I want it to happen out of the box. When I use this PR alone, doesn't give the right results from a clean build, because I've not built the projects in the right order. |
Tell me more about
Is the idea that sometimes That seems totally doable, though I think you're right that we'd want to put that behind a flag (probably combined with the behavior in this PR - something like |
I guess the part I'm not quite understanding is:
So my disconnect is why that doesn't work as expected to build projects you're missing once this PR is merged. |
I think I get it...is the problem that we don't pick up on transitive references? I.e. if I'm adding project A to the workspace and if references project B, I'll add and build B. But if B also references C, I'll never add and build C to the workspace. |
I'm going to bring this discussion back to the original issue... |
Fixes #159
This change adds to the functionality when you set
addProjectReferences
totrue
. At the moment it will follow all references where you have already added the project to the solution, but if you want to create an ad-hoc solution with a csproj as the entry point, I think you'll want this behaviour to automatically add references projects to the solution.Just to be clear, the code change code (in
GetReferencedAnalyzerProjects
) is only called whenaddProjectReferences
istrue
.