-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
read packages from packages.config #17
read packages from packages.config #17
Conversation
dd12eff
to
25c03c0
Compare
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.
Unfortunately the code you propose does not work properly. We offer a flag that allows to also print transitive dependencies (see https://devblogs.microsoft.com/nuget/introducing-transitive-dependencies-in-visual-studio/ for more information). The issue is that transitive dependencies are not considered for packages specified in packages.config
.
To verify this works correctly, please add at least one additional integration test that checks that transitive dependencies are indeed followed.
Also I would love if you could use as much tooling already available instead of implementing the xml parsing on your own.... --> See https://stackoverflow.com/questions/33035704/how-to-read-the-list-of-nuget-packages-in-packages-config-programatically for an example
src/NuGetUtility/ReferencedPackagesReader/ReferencedPackageReader.cs
Outdated
Show resolved
Hide resolved
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.
Thank you very much for your contribution. Unfortunately there are currently two issues I see. Would you mind fixing these?
There are formatting issues.....
These can be resolved very easily by running dotnet format [path to solution]
Also there is an error 'ManagementClass' is only supported on: 'windows'
I tried to isolate the use of |
Ok, so there are still test failures - can you please run the tests locally to fix all of them? |
I had to move the file-reading to a wrapper-class in order to satisfy the 'architectural test', please check if that makes sense or we should attack it in another way? (Tests seem to pass locally now at least ;-)) |
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.
Looks good now
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Attempt to solve #15
Might be too naive but seem to work OK for initial test, please have a look and tell me what you think.