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

Add package references to project file #111

Merged
merged 2 commits into from
May 16, 2019
Merged

Add package references to project file #111

merged 2 commits into from
May 16, 2019

Conversation

eNeRGy164
Copy link
Contributor

Add the ability to get package references with name and (optional) version.
Helps with #110

/// <summary>
/// The list of <c>PackageReference</c> items in the project file.
/// </summary>
public IReadOnlyList<PackageReference> PackageReference => _projectElement.GetDescendants(ProjectFileNames.PackageReference).Select(s => new PackageReference(s)).ToList();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be plural? So PackageReferences

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, yes indeed

@glennawatson
Copy link

+1 this one, have a project at the moment that could benefit from it.

@daveaglick
Copy link
Collaborator

Thanks! Going to get a new release with this change out the door momentarily.

@daveaglick daveaglick merged commit e69daa8 into phmonte:master May 16, 2019
@eNeRGy164 eNeRGy164 deleted the PackageReferences branch May 16, 2019 11:58
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

Successfully merging this pull request may close these issues.

3 participants